Differences in,<original-package> and <manifest package=...> in Androidmanifest.xml:
<ORIGINAL-PACKAGE>: Application Source Package
<manifest PACKAGE=...>: Application runtime process name, same as R.java package name
Therefore, the above two names can be different, generally do not write <original-package>, but if written, you need to pay attention to the following points:
1. If <manifest package=...> is the same as the name value of <original-package>, the Android:name property value can be used when configuring the build. ClassName "form.
2, if the name in <manifest package=...> is not the source package name, then in <activity><service><receiver><provider> The Android:name property in is required to write the full package name, ". ClassName "form is invalid. And at this point, when you reference R.java in your code, you use that name as well, see the code
<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "Com.test.process"
Android:versioncode= "1"
Android:versionname= "1.0" >
<original-package android:name= "Com.test.testapp"/>
......
From the above code, R.java in the "com.test.process" package, and the project source code package "Com.test.testapp", therefore, in the code to reference R.java, you must use the import COM.TEST.PROCESS.R;
Original reference: http://blog.csdn.net/wh_19910525/article/details/8203968
Android <original-package> tags meaning