Changing Android packagename in AndroidManifest.xml without actually changing folder package paths -


i have template app can reskinned changing config params according client's brand. when comes publishing on google play, need change packagename on androidmanifest.xml.

my question is: possible without changing folder names, don't need mess whole project structure?

it's totally possible. in androidmanifest.xml should change package name according need, activities , services should target full path of classes.

for instance if application package name should com.mybrand.myapp , old java package name com.myoldbrand.myoldapp manifest should :

<application     android:allowbackup="true"     android:icon="@mipmap/common_app_icon"     android:label="@string/common_app_name"     android:supportsrtl="true">      <activity android:name="com.myoldbrand.myoldapp.myactivity">         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity> </application> 


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -