0

I want to create a new app by modifying code of an existing app's source code. So I did the following from eclipse:

  1. exported the code of the old app "app1" to a file system.
  2. created a new Java project "app2", and imported the code that was exported earlier.
  3. modified strings.xml, and renamed the app_name as "app2"
  4. made other edits to app2's code, for a new feature.
  5. ran app2 on the mobile device (connected to the PC)

Now app2 is working correctly, and its name is also seen as "app2". But I see that when I loaded the code onto the mobile device, it has replaced the app1 that was previously installed, ie the app1 is no more visible on the device.

So my question is: what other changes do I need to make (apart from the strings.xml:app_name) to make a completely new app? ie, I want both app1 and app2 to exist on the device.

R71
  • 4,283
  • 7
  • 32
  • 60

1 Answers1

1

You have to change package name as package name plays as unique in android.

Here is showing way how to do that :

https://stackoverflow.com/a/4025422/4161269

Community
  • 1
  • 1
Anik Islam Abhi
  • 25,137
  • 8
  • 58
  • 80