I want to change my application package name at run time using some script or some other way. But I don't know whether it is feasible in android or not.
Can anybody help me out to achieve the same?
Thanks in advance.
You can't dynamically change the package name of your application. Your package name is basically the ID Android uses to identify your application. Also, it's pretty much "burned" into the APK, so the only way to change it would be to open up the APK and change it in there. However, that would probably require root.
Related
I am working on app where I required to change manifest file.
I saw long before to change package name at time of sign apk, but not able to find that also.
so is there any way to change Version Code, Package Name and Pnermission using code..
As said here the possible changes at runtime are very limited. At least for standard no-root-required software (Not sure though if root privileges really help for that matter). It's hard to guess what you're trying to accomplish but after all the manifest was made to fix such things as version code, package name and permissions before your app is compiled.
So please correct me if I'm wrong, but I think what you are trying to do is not possible.
First of all,thanks to everyone, who considers this post.How to detect whether any of the offline language dictionaries,say https://play.google.com/store/apps/details?id=com.socialnmobile.colordict&feature=nav_result#?t=W251bGwsMSwyLDNd, https://play.google.com/store/apps/details?id=livio.pack.lang.en_US&feature=search_result#?t=W251bGwsMSwxLDEsImxpdmlvLnBhY2subGFuZy5lbl9VUyJd etc.., are installed in android device and if yes, how can I pass the word(for which the definition is required) programatically to the dictionary application.Please help me.
Finally , I prefer a solution for my question, though cant be the exact solution for the question.I used the link, http://thesaurus.altervista.org/dictionary-android
and used the available package and accessed from my application by using intent.
try this-
http://sourceforge.net/p/dictionarymid/code/HEAD/tree/trunk/Android/
might be it will be useful for you,good luck
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.
I downloaded the source code of OI Notepad and did some modifications to it. And then made an .apk file out of it. But when I try to install the .apk it shows
This is a system application.
Do you still want to replace it?
When i say yes it moves forward but does not install it..
I have this post My application tries replace another my application and the answer given there the package name of both the apps cannot be same.
But is there any way in which I can manage to install modified OI Notepad without any hassles of replacing the older one. It happens in Emulator..
Thanks
If you are using eclipse you can right click the package tree and use the refactor option to quickly change the package. This, in most cases, correctly updates the Application Manifest for you. This 'should' resolve the error you are having keeping in mind that you will now have two versions of the application so it may be in your best interest to change the application name of your custom version so you can easily distinguish between the two.
i have used eclipse, android sdk and phonegap to create a small application. I give it a test and create a test.apk package.
What i ma wondering is where can i set up some details about this app, like who made it, the app name, the version, an icon maybe, any other things i might need to setup.
I have a AndroidManifest.xml file and when i open it i get a nice gui but i don't know what to modify there
Im not sure what i need to set up and even if i need to.
A good tutorial is much appreciated. Thanks
You can set most of those things in the manifest file. If you want to include this information in your code, add license headers in all your classes, use java-doc etc.
If you want this information to be accessible in your app like from 'About' button, you have to handle it yourself.
Take a look at this example.
This details are to be filled when you upload it to android market. I dont think you set them in AndroidManifest.xml ! you can see the xml code , by clicking on the "source code" tab just below the UI .
Here's a tutorial that describes managing AndroidManifest.xml, the app name and icons from our AppLaud Eclipse plugin for PhoneGap Android.