07.20.10

Use Manual Settings for Testing your Android App

Here’s a quick tip for an issue I see asked all the time.

If you’re developing an android application and want to try it on your phone but you’ve been running it in an emulator (or vice versa) it’s a head-scratcher on how to get the app to be sent to your phone instead of the emulator you have running.

When you click the run button eclipse automatically figures out which emulator or device to run your app on. If you’ve got a few running emulators and/or devices plugged in, it just picks one. Probably the first. You want eclipse to ask you instead of guessing.

  1. Click the down arrow next to the run button. Then click on “Run Configurations…”
  2. Click on the Target tab.
  3. Click Manual.
  4. Finally, hit Apply then Close to save your changes.

Once you’ve done that eclipse will ask you which device you want to run your app on when you hit the run button. Sure, it adds another click to the process, but it allows you to have multiple emulators up or devices plugged in without confusion.