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

sql - VB.NET Operand type clash: date is incompatible with int error -

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

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -