Discover file sharing apps for android, include the articles, news, trends, analysis and practical advice about file sharing apps for android on alibabacloud.com
Android custom control interface title navigation and control packaging and sharing
Controls
The contents of this article are as follows: 1. custom Control attribute Definition 2. java code of the custom control 3. usage of custom control properties 4. control Project packaging 5. use of other projects
1. Define custom control attributes
Custom control attributes are mainly defined in the attrs. xml
achieve the same effect of the window, the following figure:
Development steps:
1. Define layout popup_main.xml. Popup_main.xml definition of the final display of the window, you can place a number of platform sharing buttons, such as: micro-letter/microblogging/space/Everyone, the code is as follows:
2. Define the theme style. The theme style definition is referenced in the android:theme= "" attribute of the label in the Androidmanifest
API behaves consistently regardless of whether the external storage device is removable. The following list summarizes the actual information about each storage space.Internal storage:It is always available.Only your app can access the files saved here.When a user uninstalls your app, all of your app's files are removed from the internal storage.Internal storage is the best choice when you want to make sure that your files are inaccessible to users or other
Android Sina authorization and sharing
1. First, release a demo and jar package from the official documentation of Sina. The structure is as follows:
2. reference the sdk project in your own project. The reference method is as follows:
3. Public classes for sharing and authorization code calls are as follows:
Public class ShareUtils {public static final Stri
am of course directly using the official own UI library, which is connected to the application.Download the GANGSDK package after unpacking as shownNothing to analyze the description of the library contained in the GanguiThree, rapid integration 1. Android Studio builds its own test project, File->new->importmodule import the Gangui inside the unpacked folder2. Open the Build.gradle
Android: Call the system sharing Function
Sample Code:
/*** Call the system sharing Function * Created by admin on 15-4-13. */public class extends Activity {@ Override protected void onCreate (Bundle savedInstanceState) {super. onCreate (savedInstanceState); setContentView (R. layout. pai_layout);} // share the text public void shareText (View view) {Intent = ne
In the previous section, we covered several methods for data persistence: preferences, files, and databases. It is recommended that you use Sqlitedatabase when you are saving complex data structures. However, sharing data is a challenge because the database is only available for packages that create it.
In this section, you'll introduce Android-specific ways to share data: using ContentProvider. It also de
The Android system provides the sharing function (text and images can be shared at the same time ),Zookeeper
/*** Sharing Function ** @ param context * @ param activityTitle * Activity name * @ param msgTitle * Message Title * @ param msgText * message content * @ param imgPath * image path, if you do not share an image, pass null */public void shareMsg (String
Application ClassIn Android, launch an app that first initializes the application and then checks the androidmanifest.xml manifest file with it to select the activity that needs to start first.In activity, you can use the Getapplication () method to get an instance of the application, use it to get the theme of the current application, the contents of the resource file
library or engine library that you are relying on in your project has embedded the. So file and relies on different ABI.For example, in a project that uses the Renderscript support library, Opencv,unity,android-gif-drawable,sqlcipher, and so on, you have already included the. So file in the generated APK file and you
toprightcornergradient = new Radialgradient (width
-Radius, radius, radius, 0x7f000000, 0x00000000,
Tilemode.clamp);
Radialgradient bottomleftcornergradient = new Radialgradient (RADIUS,
Height-radius, Radius, 0x7f000000, 0x00000000, Tilemode.clamp);
Radialgradient bottomrightcornergradient = new Radialgradient (width
-Radius, Height-radius, radius, 0x7f000000, 0x00000000,
Tilemode.clamp);
//Draw four corner, is to draw four circle center angle is 90 degrees of the fan, DrawA
The previous section has introduced the Broadcastreceiver implementation of real-time monitoring of the power of the function, this section to introduce the automatic start-up function, which is much simpler than listening to power(1) Registering permissions in the manifest file (2) Implement Broadcastreceiver interfacePackage Com.example.g04_broadcastreciver04;import Android.content.broadcastreceiver;import Android.content.context;import Android.con
Pop-up window of Android PopupWindow (taking the common sharing interface as an example)
1. Main Code:
Statement:
private View shareView;private PopupWindow pop;
In the onCreate method:
// Introduce the window configuration file lateral view = LayoutInflater. from (this ). inflate (R. layout. jyx_activity_share, null); // create a PopupWindow object pop = new
One, SMS sharing01Intent Intent = new Intent (intent.action_send);02Intent.settype ("Text/plain"); Plain text03Picture sharing04Intent.settype ("Image/png");05Add a picture06File F = new file ("/sdcard/sd.png");07Uri u = uri.fromfile (f);08Intent.putextra (Intent.extra_stream, u); Add a picture09Intent.putextra (Intent.extra_subject, "share");10Intent.putextra (Intent.extra_text, "I would like to share");11StartActivity (Intent.createchooser (Intent,
Android provides a downloadprovider, which is a complete download tool. It provides good external interfaces that can be called by other applications to complete the download. It also provides download, notification, and storage mechanisms.This downloadprovider is used in Android browser and other tools.
Unfortunately, this downloadprovider is not open to app developers and is only used internally.
We will
Android data storage file and android Data StorageIn the previous article, we used SharedPreferences to save data in Android. SharedPreferences mainly saves the setting information of some applications or a small amount of user information when saving data, the String class information stored in the form of key-value h
user folders, including sharing, keyboard layout, and time zone files.
Userdata. img stores user data in the Android system. It is mounted to the/data/directory by the init process by parsing the init. rc file. By default, there is no file in it.
Cache. img, mount in the/cache directory.
For the image generation confi
handle many details for you. For example, you are not allowed to list header files or other dependencies in the Android. mk file. These ndk build systems are automatically calculated and processed for you.
This also means that when you update to the new version of ndk, you should benefit from the support of the new toolchain/platform without modifying your android
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.