Separate releases running on same device? - android

I've created an android app and installed it on my device.
Now I have changed the name and the icon for this app.
Is it possible to install this next to the "previous" app ?
When I try this it overwrites the previous one.
(I would prefer not to change the package name(s) since want to do this more then once).

No it is not possible the way you want. Name of application is irrelevant (it is just for humans). Package name (package attribute of <manifest> is what matters, so you need to name packages of your both builds differently to make this happen. There's no other way.

You will have to change the package name.

Related

Double Application on Android

I want ti install same app twice without replacing the each Other.
something like :I Want play a game from the start without losing previous game saved data.so, Is there a way i can install same apk twice without replacing the previous one. is it possible??
Will changing the apk package name & changing default installed Directory of app work?,but i think it doesn't work.
Actually you can I do that before BY:
You must have a different package name (make sure the package name in the AndroidManifest.xml file is different), there is no other way. I had two different versions of the same product (free & paid) and used: com.package.paid & com.package.free.
This means that nothing is shared between the two apps (DB included).
You can also use ANT scripts to build both apps from the same code base, I just changed it manually every time I needed to build a version. Hope this help :)
You can't do that, android only allow one version of an app exists. Do an upgrade or downgrade installation, or find another device to install the same app.

Two Icons appearing after name change

I changed the name of my app by editing the #string/app_name string resource. Now when I download it from the Marketplace, I get two icons on my homescreen - one with the old name and one with the new! I'm stumped. I don't know where the old name is coming from. I did a search on the entire project folder and still can't find it!
And yes, I have just one activity with the action.MAIN and category.LAUNCHER intent filters. So any idea what gives?
Did you change the package name too when you changed the app_name? If you did then you have two different apks installed on your device and you need to uninstall the old version of the package from the Settings screen.
Just tested this on another device and only one icon was installed. Must have been something wonky with my development device!

non standard package name - will it cause trouble?

I have rather stupidly published a game on the android market with a package name of mick.game.tangletwister, whereas I should have called it com.rai.tangletwister (where rai is the name of my company)... it all seems to work fine - but could it cause some trouble in the future - should I change it? And if I do change it, will it cause problems for existing users that grab the updated version?
It will be fine if you keep the existing package name. Nothing wrong with that. The TLD.company.appname format is just a convention. As long as you don't enter some special characters in your packagename (which you did not), it will work anyway.
But if you try to change it you will run into trouble. See Things That Cannot Change.
If you change the package, update notification will not work any more. Moreover, when a user with the old package name installs the updated game, he/she will have both installed, because the update will replace the old version only if package/class are the same.
Depending on how many installs you have, you can, of course, remove the existing app from the Market - this should force-remove it from devices where it's installed. Then you create another app (same metadata, naturally) and use a correct package name.
1) Change the package name
2) Create a new app in the android market with that new package name
3) Update the old app, and add a pop-up saying that users should install a new version. Possible with a link to the new app
4) After some months, you should remove the old app.
Like user287351 said, it is possible to keep using the current package name, but i would prefer to have it listed under the correct package name

Wrote two Android apps with Eclipse. Can't install both at the same time?

I wrote two completely different applications for Android, and although learning Android was a bigger pain in the butt than I would have liked, they both work nicely. Unless I try to install them both at the same time.
Android thinks they are the same app! I have no idea why. Both are signed. Android wants me to uninstall app A before I can install app B. It's not like they have the same name or anything. They do use the same package name, but the activity names are different. Does the package name have to be different?
Short answer, yes. The packages are supposed to be specific to your program / 'company' so keep them that way.
The have to have different package names. No two apps in the android marketplace can have the same package name. Just change the package name and you should be good. You can guarentee unique package nams for your app simply with using com.developername.appname naming convention.
Android identifies different applications by their different package names. If an application has the same package name as another in the market (or on the device), it will be unable to tell which one is the correct package to modify / delete / start, and thusly requires all applications to have different package names.
The packages must have different names and they must be signed with two different keys.

How to install an app I write twice?

I need to have both earlier and later versions of App I write in Eclipse.
What do I need to change (activity name?) to upload new version of the app to my phone without overwriting the old one? Any fast way to do it?
The package name in the manifest identifies the application (see here). So you also need to change the package name.
Change the app name in your manifest file.

Categories

Resources