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
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
Once the service is running, you can use toast notifications or status bar notifications to notify users.
A broadcast notification is a message temporarily displayed on the current window, and a status bar message provides a message icon in the
Although fragment is an object implemented independently of the activity and can be used within multiple activities, a given fragment instance is directly bundled into its activity.
In particular, fragment can use the getactivity () method to
An activity is an interface component provided for users to interact with a program, such as making a call, taking a photo, sending an email, or viewing a map. Each activity is an interface used to describe the user interface. Normally, this window
This article translated from: http://developer.android.com/guide/topics/graphics/2d-graphics.html
Drawing
Android provides a custom 2D graphics class library for drawing graphics and images. The android. Graphics. drawable package can find a common
This article translated from: http://developer.android.com/guide/topics/graphics/hardware-accel.html
Since android3.0 (API level 11), Android 2D rendering pipelines can better support hardware acceleration. All the drawing operations performed by
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
The android backup service is integrated into the android data backup framework. It is used to back up and restore data on most devices running Android or later. In some cases, the specific Android device may contain different backup transmitters
This article translated from: http://developer.android.com/training/basics/intents/sending.html
One of the important features of Android is to bring users into another application based on the specific "action" to be executed. For example, if your
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.
Use the animatorset class to orchestrate multiple animations
In many scenarios, playing an animation depends on the start or end of another animation. The Android system allows you to bind these interdependent animations to an animatorset object so
In some cases, fragment and activity sharing events may be required. Defining a callback interface within fragment is a good method and requires that the callback method be implemented by the activity holding it. When an activity receives a callback
Fragment provides a menu item for the optional menu (including the action bar) of the activity by implementing the oncreateoptionsmenu () method. However, to make this method acceptable, you must call sethasoptionsmenu () in the oncreate () method ()
Use viewpropertyanimator to create an animation
The viewpropertyanimator class uses a single animator object to provide a simple method for parallel processing of several animation attributes of a view object. Its behavior is very similar to the
Rollback Stack
The edited transaction in fragment can be placed in its own activity and rolled back to the stack. When you press the return button in the activity, a stack will pop up before any transaction in the rollback stack ends.
For example,
As the Connected ServerWhen you want to connect two devices, one must hold an opened javasthserversocket object as the server. The service socket is used to listen to input connection requests and provide a thsocket connection object when a
Class description
1. Nested classes
Class fragment. instantiationexception
If an instantiation error occurs, the exception class is thrown through the instantiate (context, String, bundle) method.
Class fragment. savedstate
You can use the
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