So if you have forgotten to rename your application package name during the project creation. As default Android give the name as "com.example", which is not accepted, if you publish it in Google Play. So you have to change your package name. It is very easy to do that.
Just right clcik on the project folder eg.sample, and and select "Android Tools" from the popup menu, now select "rename application package" as shown in the picture below.
Now a child window named "Rename application package" is opened. click on the old package name to rename and type a new name. eg: replace "example" with new name "arise" as shown in the picture below.
Now another window named "Refactoring" is appeared. Don't change anything, Just click finish.as shown below.
Now a message window named "Launch configuration update" is shown. Just click "YES" as shown below.
Now you have successfully renamed your package. open the "gen" and "android manifest" to see the changed name. (TIP) The package name in "src" will not be renamed. Its not a problem. (See the image below)
This blog is created to help you in Android Development.This will be helpful to Beginners as well as Experiencing Developers. For easy understanding screen shots and graphics are widely used.To further help you, links to useful Android resources and an Exclusive search in best Android forums is given. In contrast to other Android sites many shortcuts and very useful tips are also given. You may post your feedback, syntax, tips and shortcuts as comments.
Monday, January 14, 2013
8. How to easily rename your package file in Android
Android Development Help
8. How to easily rename your package file in Android
Subscribe to:
Post Comments (Atom)
Great post. Keep it up. Thanks for advice. It is wonderful information for me.
ReplyDeleteWeb Design Company Bangalore