Return to site

Rename Android App Package Name

broken image


  1. How To Rename Android Phone
  2. Rename Android Package Name
  3. Android Studio Rename App
  4. Rename Android App Icon

While developing any Android application, generally it is the tendency of Android app developer to keep the PackageName as it is and not to change it. But at times, while uploading an application on Play store or due to some other constraints there could be a need to change the PackageName of Android application or some packages in the application.

Rename android package name
  1. For Android App Name. Change the label name in your AndroidManifest.xml file: android:name='io.flutter.app.FlutterApplication' android:label='TheNameOfYourApp' For Package Name. Change the package name in your AndroidManifest.xml file.
  2. Apk editor pro is the best alternative of apktool for android and apktool for windows.It can edit android apps without doing any setups. The best feature of this is that you can edit smali files means anyone with knowledge of smali coding can change app code. Here is the features of apk editor Features: 1. Change app name.

Navigate to the applications section. Samsung rv520 wireless switch wireless. There you can see all the apps. Click on the app for which you want to change the name of the icon.

Changing PackageName is a crucial part of any Android application as many of the core libraries and R.java file depends on the package name. Also, changing the package name was bit easy task for the Eclipse users, but this might not be the same in Android Studio as the package level names are not displayed in Eclipse style. i.e. In Eclipse, the packages are displayed with full parent hierarchy, but in Android Studio, it is displayed in a folder level hierarchy, so sometimes it looks bit difficult to change the PackageName.

So in this article, I have tried to share some important guidelines to make this process easier. This is already documented in the Android Studio guide which is so huge that most of the time it is difficult to read everything of it. The purpose of sharing this feature separately is to highlight the steps, so it is easy for all Android developers to quickly change the PackageName when needed.

Below are the steps for changing the PackageName in Android studio.

  • Lets say, I want to change package name com.mycompanyname1.data to com.mycompanyname.data.
  • Click setting icon from Project explorer and check the Flatten package option.
  • Now again click on setting option and uncheck Hide Empty Middle Packages.
  • So now package name gets divided in different sub-package like com, com.mycompanyname1, com.mycompanyname1.data under java directory.
  • Right click on com.mycompanyname1 package name and click option Refactor->Rename option (Alt+Shift+R) then rename packagename dialog box opens up, just change the package name as you want. For current example, we changed mycompanyname1 to mycompanyname.
  • Click on Refactor button in dialog box.
  • Click on Do Refactor at bottom.
  • Android studio automatically changes package name in whole application except build.gradle.
  • Open build.gradle file under application, rename package name manually.
  • Now, again click on setting option and uncheck Flatten packages option.
  • Sync the application again and the code will be refactored according to new package.

For more clarity, you can also refer to the video shown below,

How To Rename Android Phone

Hope this makes your life more easy now, to change the package name during Android app development. 🙂

If you have any questions, then comment box is open for it.

Author : RajMT

About the Author
  • Android Team @ WeblineIndia

    We are Android experts @ WeblineIndia.We have developed lots of Android apps for various domains like - Business, Social, Medical, News, Sports, Education, etc. We also have expertise in custom SDK development.Following well defined standard development processes, coding standards, tools and techniques, it has always helped us to provide best mobile apps to our clients. Our main focus has always been to exceed client expectations and deliver easy to use technically strong apps. On the side, we also love contributing back to the community.Contact us if you want to develop an Android app.
  • Rename

    Have you ever wished to rename an application from the ones that are established on your Android smartphone or tablet?

    Perhaps you do not know that this can readily be performed if we are talking about application icons on the home screen and in the list. You will not be able to rename the applications themselves, and their titles will stay the same if you go into them or seek in the Settings – Applications section. Below we will talk about icons.

    Rename Android App Package Name

    You may also like: How to update apps on Android

    The first way is in the launcher.

    In order to alter the name of the application shortcut, first of all, you will need to install a custom launcher for Android. For instance, Nova Launcher or Apex Launcher, which can be downloaded for free on Google Play, are suitable. In our example, Nova Launcher is used. Suppose you installed it and use it as a default.

    Now you can quickly rename any shortcut of the application in just a few steps. Long click on the application, press on the appeared Edit option, then enter a new name and click Finish. Everything, now the label is called the way you want.

    The second way – module Xposed

    Xposed – a framework with a repository of modules that allow very flexible customization of Android. The xRenamer module is intended for renaming applications, and it affects the names that are displayed not only on the home screen but also in other places.

    Rename android app name
    1. For Android App Name. Change the label name in your AndroidManifest.xml file: android:name='io.flutter.app.FlutterApplication' android:label='TheNameOfYourApp' For Package Name. Change the package name in your AndroidManifest.xml file.
    2. Apk editor pro is the best alternative of apktool for android and apktool for windows.It can edit android apps without doing any setups. The best feature of this is that you can edit smali files means anyone with knowledge of smali coding can change app code. Here is the features of apk editor Features: 1. Change app name.

    Navigate to the applications section. Samsung rv520 wireless switch wireless. There you can see all the apps. Click on the app for which you want to change the name of the icon.

    Changing PackageName is a crucial part of any Android application as many of the core libraries and R.java file depends on the package name. Also, changing the package name was bit easy task for the Eclipse users, but this might not be the same in Android Studio as the package level names are not displayed in Eclipse style. i.e. In Eclipse, the packages are displayed with full parent hierarchy, but in Android Studio, it is displayed in a folder level hierarchy, so sometimes it looks bit difficult to change the PackageName.

    So in this article, I have tried to share some important guidelines to make this process easier. This is already documented in the Android Studio guide which is so huge that most of the time it is difficult to read everything of it. The purpose of sharing this feature separately is to highlight the steps, so it is easy for all Android developers to quickly change the PackageName when needed.

    Below are the steps for changing the PackageName in Android studio.

    • Lets say, I want to change package name com.mycompanyname1.data to com.mycompanyname.data.
    • Click setting icon from Project explorer and check the Flatten package option.
    • Now again click on setting option and uncheck Hide Empty Middle Packages.
    • So now package name gets divided in different sub-package like com, com.mycompanyname1, com.mycompanyname1.data under java directory.
    • Right click on com.mycompanyname1 package name and click option Refactor->Rename option (Alt+Shift+R) then rename packagename dialog box opens up, just change the package name as you want. For current example, we changed mycompanyname1 to mycompanyname.
    • Click on Refactor button in dialog box.
    • Click on Do Refactor at bottom.
    • Android studio automatically changes package name in whole application except build.gradle.
    • Open build.gradle file under application, rename package name manually.
    • Now, again click on setting option and uncheck Flatten packages option.
    • Sync the application again and the code will be refactored according to new package.

    For more clarity, you can also refer to the video shown below,

    How To Rename Android Phone

    Hope this makes your life more easy now, to change the package name during Android app development. 🙂

    If you have any questions, then comment box is open for it.

    Author : RajMT

    About the Author
  • Android Team @ WeblineIndia

    We are Android experts @ WeblineIndia.We have developed lots of Android apps for various domains like - Business, Social, Medical, News, Sports, Education, etc. We also have expertise in custom SDK development.Following well defined standard development processes, coding standards, tools and techniques, it has always helped us to provide best mobile apps to our clients. Our main focus has always been to exceed client expectations and deliver easy to use technically strong apps. On the side, we also love contributing back to the community.Contact us if you want to develop an Android app.

    Have you ever wished to rename an application from the ones that are established on your Android smartphone or tablet?

    Perhaps you do not know that this can readily be performed if we are talking about application icons on the home screen and in the list. You will not be able to rename the applications themselves, and their titles will stay the same if you go into them or seek in the Settings – Applications section. Below we will talk about icons.

    You may also like: How to update apps on Android

    The first way is in the launcher.

    In order to alter the name of the application shortcut, first of all, you will need to install a custom launcher for Android. For instance, Nova Launcher or Apex Launcher, which can be downloaded for free on Google Play, are suitable. In our example, Nova Launcher is used. Suppose you installed it and use it as a default.

    Now you can quickly rename any shortcut of the application in just a few steps. Long click on the application, press on the appeared Edit option, then enter a new name and click Finish. Everything, now the label is called the way you want.

    The second way – module Xposed

    Xposed – a framework with a repository of modules that allow very flexible customization of Android. The xRenamer module is intended for renaming applications, and it affects the names that are displayed not only on the home screen but also in other places.

    How to work with it?

    Establish and run Xposed Framework, go to the 'Download' section, find the xRenamer module, go to the download page, download it, install it, and then activate it in the 'Modules' section and reboot the device. In the application list, xRenamer will appear, run it, and rename the applications whose original names do not suit you.

    The third method is the QuickShortcutMaker application

    Rename Android Package Name

    QuickShortcutMaker changes the names only on the start page and, unlike the launcher, does not change the interface of the device in any way.

    How to work with QuickShortcutMaker?

    Android Studio Rename App

    Install this application from Google Play and launch it – you will see a list of all applications installed by you. Click on any and on the right side of the screen select the option 'Tap to change label' – the text field will open.

    Rename Android App Icon

    Specify a new name and save it by clicking OK. Then click the Create button, after which the application icon with the changed name appears on the start page of your device.





  • broken image