I am writing some test Android apps using Eclipse. I created my 1st project, a simple hello app, built the apk (app1.apk), and was able to install and run that on an Android tablet.
I then created a new project in eclipse, for a 2nd app. I exported the apk (app2.apk). But, when I try to install this 2nd apk (app2.apk) on the tablet, it warns me that it wants to REPLACE the 1st app.
When I built the apks, I used a different key for app1 vs. app2, and the project and class names are different, so what is it that the Android installer is using that makes it think that both apks are the same app?
Thanks,
Jim
It sounds like you are using the same package name in both apps.
Related
I have an old app that I've written for personal use only, and never made as release to the Play Store. I installed it to my phone via Android Studio using run app command.
Many years later I want to modify the app, I try to pick up the app and run it again, this time using a different computer. I get the error saying:
"Installation failed since the device already has an application with the same package but a different signature. In order to proceed, you have to uninstall the existing application."
I definitely don't want to uninstall my app, this would cause me lost all the data I've entered to it. So I want to ask that isn't the debug keystore used by Android Studio to install app on device would create app of the same signature? Why it would be different? Is a different machine caused this issue? Thank you very much!
It sounds like you were using your debug certificate when you originally installed the app. This is unique to each machine when you install Android Studio.
You can copy the debug certificate from your old machine to your new one.
The file is located in your [userhome]\.android\debug.keystore
I am developing an Android application and it is not finished. I would like to test it on multiple devices, locations with various users that are not near me. How can I achieve this? Is there an APK I can send them? Is there a way that is as simple as plugging my phone in and then running the application from Eclipse? Or would I have to make an installer of some sort (I don't know)?
Obviously you can plug your phone(s) into the machine you are developing on and run it from eclipse. This will allow you to test and debug on the devices you have access to.
You can also export an apk from eclipse (see the android pages for instructions). You could put this up on a file sharing site and make it available to your friends. They could then install it, as long as they have authorised "unsigned" apks to be installed in their phone settings.
Assuming you have deployed the app at least once from within Eclipse to debug and test yourself, you will most likely have an APK under the bin directory in your Eclipse project. The file should be .apk. This APK will have been signed automatically by Eclipse with your debug key. This is obviously not the key you use for publishing but for testing among friends I think it's fine.
What I often do is just e-mail that APK file as an attachment to my friends to an e-mail account they have setup on their phone. Then all they need to do on their phone is make sure they have the system setting to allow installation of non-market apps (i.e. not from Google Play), which maybe named something slightly different like "allow 3rd party apps". Then they can simply click on the app attachment in their e-mail, download it and run it and they should automatically be prompted with instructions to install it.
I just used MyAppSharer. (I believe there are other similar apps out there - this is just the one I've used and is very simple/easy:
...you can share by market link or directly share APK (App's full
package)
I just used that, and sent my app via apk file to my coworkers. Can't get much simpler.
Just install the app on your phone via Eclipse, then run this AppSharer, and voila - share it w/ anyone!
You can can easily export your project as an APK in eclipse
File -> Export -> Export Android Project
Hi i am new to android development.
I am creating one application. I need to send sample application to client for testing purpose.
In iPhone development we can send .ipa file to client using TestFlightApp. Is there any way to do this similar way for Android application testing.
Please help me in this issue.
Thanks in advance
each time you build your application, an apk file is created in your project's bin folder. you can use that file for testing purposes
Right click on your application project folder
Scroll down to Android tools
click on : Export as signed Android application
Use the debug key located on your sdk folder to sign the app
,the password's key : android
and you will get a debug signed apk ready to install on any device .
To keep track of your apks you may create a string variable and use it as build tag so you don't get confused by multiple apks .
I'm doing so on my project , you can also create an unsigned apk but I don't know if you will be able to install it on a real device .
Some use maven to build the apk but it's more complicated .
Test app - Original App which need to be tested..
Sample app - which I am creating to call the package of test app..
I am having .apk (which is in beta version i.e it is our application's apk) which did not go to Android Market.can i use robotium for testing the test environment apk or only the android market apk? I dont have the source code.
While creating app, do I need to go for android project or junit test case?
While creating project in eclipse, when I add package for my sample app (from that app I will call my test app’s package), in the gen [Generated java files] folder I am getting the name of the package is [package.test.test]. Is it right behavior?
I have debug.keystore for my test app. I have imported through this debug,keystor through preferences à android à Build path..So my test app and sample app both having same signature?
Regards,
Chandra
You need to actually read the Robotium FAQ and Setup documents. They lay out everything very clearly and make it easy to get up and running within an hour.
Main Robotium Page
Robotium Wiki and Tutorials
I am starting to explore the game development using unity 3d for android. I have downloaded the trial version of unity 3.3. I went through few tutorials.
I have one question that is not answered. In the normal apps which we develop using eclipse, we can deploy onto mobile by copying the apk file. What about unity 3d? How do I get the game onto my phone. I don't want to publish on market.
It is possible to transfer your assets to Eclipse. When it's integrated you can debug via your android phone. Be sure to read the tutorial on Unity's homepage. There is a step by step start-up guide and some more. Following links are worth looking at:
Getting started with Unity and Android
Official - Integrating Unity with Eclipse
Alternative link - Integrating Unity with Eclipse
It would seem that the official "integration" link is broken so I updated with a forum post that covers the same topic. However I recommend to try with the official link first.
Yes, you can simply copy the apk to your device and install it. Unity builds an apk file (and will optionally sign it using a keystore that you provide or let it generate for you). Once it has built that apk you can deploy it normally. You can even have it include a customized manifest in the apk that it builds if you want to (but it generates a nice one from your settings in the unity project by default).
There are two methods for this, as far i understand,
Using Build Settings--> Build, It builds the apk file that can be installed on your device using adb install <apk file path and name>
Using Build Settigs--> Build and Run. Which automatically installs the apk built apk file on your device if connected
go to file
-build
-select android platform(your pc has to have android development kit)
-save your apk
As it is still unanswered I try to close this question
First of all, current version of Unity 5.2 is much more powerfull than version 3.3. mentioned in original question.
What about unity 3d? How do I get the game onto my phone. I don't want to publish on market.
The same way. Unity allows you to publish build as *.apk on ocal machine and then you can just copy it to your phone and install it.
What is more cool, now you can debug your application running on phone. You have to install Unity Remote to the phone and run. Now you can set breakpoints and debug as normally.
If you change your mind and go to publish on Market - Unity will sign your *.apk
Hope this helps someone, good luck!
The Same way you generate the apk through Eclipse like that in unity you need to build the project. For that android sdk and jdk should be installed in your system and u need to show those path in the unity Preferences then u need a google keystore and need to sign in with that key store in the Publisher settings and then u are able to build the apk which will be store in your local system and you can copy that to your mobile and install the apk file.