The content provider Manages access to structured datasets. They encapsulate data and provide a mechanism to define data security. The content provider is running in another processCodeStandard Interface for connecting data in another process.
When
Kinship refers to the task that the activity is willing to belong. By default, from the same applicationProgramAll the activities have a kinship with each other. Therefore, by default, all activities in the same application should belong to the same
Most started services do not need to process multiple requests at the same time (this is actually a dangerous multi-threaded scenario). Therefore, using intentservice classes to implement your own services may be the best.
The intentservice class
Binding services allow applicationsProgramA component creates a long-term association with the service by calling the bindservice () method (the component is usually not allowed to start it by calling the startservice () method ).
When you want
When using the initloader () method, if the loader with the specified ID exists, use the existing loader. Otherwise, a new loader is created. However, sometimes you want to discard the old data and restart the loader.
You can use restartloader ()
A contract class is a static class that contains definitions of constants for Uris, column names, MIME types, and other metadata of the provider. This class establishes a contract between the provider and other applications, so that the provision
The topic "security and permissions" comprehensively describes permissions and access to the Android system. The topic "Data Storage" also describes the impact of security and permissions on various storage types. The following briefly introduces
The content provider can return standard mime media types, custom mime-type strings, or both.
The Mime Type format is as follows:
Type/Subtype
For example, the known mime-type text/html has the text type and the HTML subtype. If the provider returns
You can also use the interaction between the provider client and the provider's contentprovider object to modify the data in the same way as getting data from the provider. You call a contentresolver object method with parameters. This parameter is
The calendar provider is a resource library for user calendar events. The calendar provider API allows you to query, insert, update, and delete calendar, events, meetings, and reminders.
The calendar provider API can be used for applications and
In Android applications, view and viewgroup objects are used to create user interfaces. There are many types of view and viewgroup classes, all of which are descendants of the View class.
The view object is the basic unit of the user interface on
The contentprovider object instance Manages access to structured datasets by processing requests from other applications. All access forms of the contentresolver object will correspond to the specific methods of the contentprovider class.
Necessary
1. inheritance relationship
Java. Lang. Object
|____ Android. OS. Logoff
2. class overview
This class is used to return a message loop to the thread. By default, there is no message loop associated with the thread. Calling the prepare () method in
Drag Event Listeners and callback Methods
You can use the drag-and-drop event listener that implements the view. ondraglistener interface or the ondragevent callback method of the view object to receive drag-and-drop events. When the system calls
Public void onstart ()
This method is called when the fragment object is visible to the user. This method is usually bound to the activity. onstart () method of its activity lifecycle.
Public void onstop ()
When the fragment object is terminated,
A service is an application component that can perform long-term operations in the background without providing a user interface. An application component can start a service. Even if the user switches to another application, the Service will
Android provides several options for storing persistent application data. Select a suitable solution based on specific requirements, such as whether the data is private or shared by the application, and the storage space required by the data.
The
The Android platform provides a wide range of visual UI components-Widgets. By combining these small visual components, You can provide users with complex and useful interfaces. However, applications often need some advanced visual components. To
This article translated from: http://developer.android.com/guide/topics/renderscript/compute.html#creating-renderscript
The rendering script (renderscript) provides a native high-performance computing API written in C Language (c99 standard.
Create renderscript
Renderscript expands the range of processor kernels available on the device. This capability is obtained through the method called rsforeach () (or the foreach_root () method at the android framework level. It automatically
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service