Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test my app on my phone? I have Eclipse w/ Android plug-in

Tags:

android

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...

like image 817
Quadrivium Avatar asked Apr 18 '10 23:04

Quadrivium


People also ask

How do I test my Android app?

Users need to follow these simple steps to test an android app on a real device: Sign up on BrowserStack App-Live for a free trial. Upload your App through Playstore or directly upload your APK file from your system. Choose the desired Android real device and get started!

How can I test an APK file on my phone?

To run an APK file, one needs to use an emulator in Android Studio (SDK for Android app development) or a third-party emulator that allows running APK files directly on Windows or macOS. Refer to this detailed documentation by Android Studio to understand how to run an APK file on an Android emulator.

Can Eclipse make Android apps?

To do this, open Eclipse and Launch Android AVD Manager from options Window > AVD Manager and click on New which will create a successful Android Virtual Device. Use the screenshot below to enter the correct values. Voila! You have successfully created Android Application Development environment.


1 Answers

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.

like image 189
Chris Thompson Avatar answered Oct 02 '22 22:10

Chris Thompson