Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to test android applications directly on phone, without the emulator?

How can I test applications in eclipse without the emulator ? I have a phone with android, and I want to test the apps directly on phone.

Update: I want to develop the entire application using the phone. I hate the emulator because it's very slow on my computer. Also, my application needs GPS and I can better handle this using the phone.

like image 976
Teodor Pripoae Avatar asked Apr 27 '11 16:04

Teodor Pripoae


People also ask

How can I run Android apps instead of emulator?

In the Android Studio toolbar, select your app from the run configurations drop-down menu. From the target device drop-down menu, select the device that you want to run your app on. Select Run ▷. This will launch the app on your connected device.

Can I use my phone instead of emulator?

You can generally switch on USB debugging on your handset and connect it up to your PC over USB. The handset will then appear to adb in the same way as an emulator.

How can I test my android app on my phone?

Run the app on your device as follows: In Android Studio, select your app from the run/debug configurations drop-down menu in the toolbar. In the toolbar, select the device that you want to run your app on from the target device drop-down menu.

Can we use Android studio without emulator?

No. It does not make sense that you would be able to do so, every application for any device needs a platform to run on!


2 Answers

Yes, Android explicitly supports this. Try this link: https://developer.android.com/studio/run/device.html

like image 179
MHTri Avatar answered Sep 17 '22 18:09

MHTri


Connect your phone by USB cable to your computer. Remember to set android:debuggable="true" in your application in the AndroidManifest file.

ETA: alternatively, you can email the .apk files to an email account the phone can access and install from there. You'll also need "unknown sources" ticked under Settings -> Application. (Although that will only let you run them, not debug them.)

like image 20
Ben Williams Avatar answered Sep 21 '22 18:09

Ben Williams