1. Display Intent
// set the content directly and the name of the actvity to the next New Intent (mainactivity. this, anotheraty. class ); startactivity (i);
2. Implicit intent
1>. When you configure activity in Androidmanifest.xml, add the Name property <activity Android:name= "in the action . Anotheraty "> <intent-filter> <!--here the action name can write any string, in order to facilitate the use of the package name plus Initent.actioin.AnotherAty (activity name) combination form- <action android:name= " Com.aaa.chengzhier.intent.action.AnotherAty "/> <category android:name=" Android.intent.category.DEFAULT "/> </intent-filter> </activity>2>New Intent ("Com.aaa.chengzhier.intent.action.AnotherAty"); startactivity (i);
With the note, but generally2> com.aaa.chengzhier.intent.action.AnotherAty
Public Static Final String ACTION = "Com.aaa.chengzhier.intent.action.AnotherAty"
New Intent (anotheraty.action); startactivity (i);
Android Intent App