5

Where do I copy the apk file on the Motorola Droid? Which directory? Are there any possible issues I need to be careful of, it's also my personal phone...

3
  • Thank you for your input. I am using Eclipse for the code, and am having sucess with the emulators. I just want to actually get one onto the phone, I am trying to access the camera. Is there an easy way to get this done with the Eclipse Plugin?
    – Quadrivium
    Apr 19, 2010 at 0:18
  • @user: Could you improve your title? Testing on an android phone?
    – Casebash
    Apr 19, 2010 at 1:20
  • If you are still having problems with this, make sure to take a look at the edit to my answer. If that doesn't work, feel free to post a comment with what's going wrong and I'll try to help. Apr 29, 2010 at 17:11

3 Answers 3

5

To install an apk file, you need to execute

adb install /path/to/file.apk

While the droid is connected. I would avoid using any programs other an adb to install your application. adb will definitely follow the rules and you should be able to clean things up, etc if something goes wrong. That may not be the case with other programs.

I should note, this is assuming you are writing the program yourself. adb is a program that comes with the Android development kit (I assumed you are using this as this is a programming related site. If you are not referring to this and you are simply trying to install a program on your phone, this question would probably be better on superuser.com)

Edit To address your comment. When you select "run" from eclipse, and you have your droid plugged in, it should give you the option to select which device you want to execute the code on. Double clicking on your droid will automatically install and launch the app. You may need to enable the development settings within the Settings menu though for it to be recognized. To confirm that eclipse (really it's adb) can see your droid, launch a terminal or command prompt and type adb devices while the droid is connected. If it's listed there, you're good to go.

1
  • Thank you for your input. I am using Eclipse for the code, and am having sucess with the emulators. I just want to actually get one onto the phone, I am trying to access the camera. Is there an easy way to get this done with the Eclipse Plugin?
    – Quadrivium
    Apr 19, 2010 at 0:04
2

I guess I was making it way more complicated than it needed to be. If you have eclipse with the Android plug-in, all you need to do is go into the settings of the phone, then applications, then development. Set the Debug mode to on. when you compile the app with eclipse I guess it looks for an actual phone first, if it detects it, then it loads the app on it. If no phone is detected and you have the ADV set up right it loads it there. Easy... There is a setting about unsigned apps in the application menu, I set it to accept and turned it off after, my apps are still on the phone and work... I am not sure if it was needed at all.

1
  • It's not needed. That's more for downloading apps from other places. Apr 29, 2010 at 18:41
0

I don't know whether this is how you're supposed to do it, but get Astro File Manager, and you can install your app wherever you place it.

There shouldn't be anything you need to be careful of if it isn't rooted. Programs are pretty well contained and can't do much outside of their own little Dalvik machine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.