When I use emulator and install an apk file on it and run it,I can see it's package name in Devices
window of DDMS
perspective.But when I install that apk file on real device and connect it to PC and run that App,I can not see it's package name belove of device name in Devices
window.I enabled usb debugging
before.Is there any setting that I forgot to set it?
Asked
Active
Viewed 476 times
0

Student Student
- 960
- 2
- 14
- 24
-
The package name only show if you run the apk from Eclipse, not directly from real device – ramaral Oct 19 '13 at 19:40
-
@ramaral say it is true.Now,is there a way to run App from eclipse on real device? – Student Student Oct 19 '13 at 19:51
2 Answers
0
It only shown in emulators and probably rooted phones.
Use USB Debugging to debug your app in a real device.
Make sure USB debugging is enabled in your phone.
If its not you can enable it by going in Settings > Developer options

johntheripp3r
- 989
- 6
- 15
0
In Eclipse menu choose Run->RunConfigurations
In the left pane select the project to run.
In the right pane select the Target
tab.
Choose Always prompt to pick device
.
Press Apply
then Close
.
Run the project like you do with emulator.
A window shows up, select your device.
The aplication will be instaled in the device and run automatically

ramaral
- 6,149
- 4
- 34
- 57