1. Overview
Intent is responsible for the action of an operation in the application, the data involved in the action, additional data to describe, play the role of the media. Specify an activity through the intent object, using StartActivity or
The Startactivityforresult method initiates another activity. In addition, intent can implement data jumps between different activity.
2.activity Jump
3. Create a Intent Object
3.1 Creating the intent object in the original Activity.java file
Note: Intent (Originactivity.this,newactivity.class), that is, to jump, jump activity class name.
3.2 Effect Display
After clicking:
4.Intent Passing Data
4.1 Sending data
Use the Putextra (Key,value) method to transfer data through the intent object.
4.2 Receiving data
Use the Getintent (). Getstringextra (key) method to receive data
4.3. Effect display
After clicking:
Use of Android development--intent