How to rename an android app without changing the identifier
Blog Post 1
I'll start by
explaining the blog
posts I will do. I
almost never will
have posts about my
life, they will
around tech and
particular, is what I
will write about
here. Let's get
OR using an IDE.This was a question I had myself. I downloaded the source code to K-9 Mail, to work on my Epistol
application, when I realized I really needed to change the name... But how? That was the question. It took
me quite some time to figure it out, but I eventually discovered how to do it while on Stackoverflow.com.
Great site by the way.
Now, I wanted to do this without an IDE, as Eclipse is really annoying when you try to import projects. I
looked around the source, but I couldn't find it. But while on Stackoverflow I discovered the answer. It is
The file should look something like this,
.... It goes on...
Now at first, I thought it was the package that I wanted to change, but no. That just causes errors, instead
you need to locate this key.
android:label= is what you want. Now, you can just change it to something like
That should work. But, instead, I used a xml file to store all my strings. That is the best way to do things,
so I would suggest you do the same. Here's how.
You will need to keep using the "@string/app_name" and then navigate to your string file. Usually, it is
located somewhere around /res/values/strings.xml
So, that file should look something like:
Again, the is only part of it. But as you can see. The is a key labeled, <string name="app_name">
That is what you want to change, I changed mine to Epistol Mail, but the idea is the same. Now, some
apps will use the string file for everything, like K-9 Mail, which was very nice. All I had to do was
Find&Replace everything that says K-9 with Epistol. You could do something similar.
That's pretty much it, happy coding!