ionic change android class name

You have to follow following steps:

1. Change in AndroidMnifest.xml

<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="SoftwareCostEstimation" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">

2. Change in build.xml

<project name="SoftwareCostEstimation" default="help">

3. Change the name of file and class name

Change the CordovaApp.java to SoftwareCostEstimation.java

and don't forget to change the name of class like:

public class SoftwareCostEstimation extends CordovaActivity

Run ionic build android

Doing this your generated apk name will be changed according to project name.

No comments:

Post a Comment