Question

As the title says, my Android phone is plugged into my computer and showing up in the DDMS, but when I click run to run my app, it just uses the emulator. I have checked the phone name and serial number, it is correct. I have checked the box on the phone "allow USB debugging". It's a Samsung Galaxy phone. It did run another app I made but I'm new to Android so this is the second app I have tested. No one seems to have asked this question so it sounds uncommon. Thanks.

Était-ce utile?

La solution

Select your app in the Package explorer (usually on the left side in Eclipse) now select Run>Run Configurations in the Menu.

A Window will pop up, search for "Android Application">YOUR APP NAME and select the "target tab". Make sure "Always prompt to pick device" is checked.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top