As we all know, an Android Application usually has multiple activities, and multiple activities communicate through intent. To make every activity "Born" normal, it must be androidmanifest. XML registration. The bold part below indicates that the full path of an instance to be registered is (Package ):Com. lql. Bill. billqueryactivity
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.lql.bill" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="7" /> <application android:icon="@drawable/app_logo" android:label="@string/app_name" > <activity android:name=".BillQueryActivity" android:label="@string/app_name" android:theme="@style/title"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/></manifest>
For a different package, we just add the similar one: the key is to write the path to: COM. lql. corresponding to different package names. xxxactivity
<activity android:name="com.lql.diffrentPackage.BillQueryActivity" android:label="@string/app_name" android:theme="@style/title"> </activity>
This is a logcat output error. An activity is not registered. OK. Proceed...