How to debug on a real device (using Eclipse/ADT)

Note: This answer is a heavily modified version of this guide that used to exist at developer.android.com. Portions of it are quoted verbatim from the original text without attribution for the specific parts that are quoted. With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. … Read more

Difference between target google APIs and target android

The Google API includes Google Maps and other Google-specific libraries. The Android one only includes core Android libraries. As for which one to choose, I would go with the Android API until you find that you need the Google API; such as when you need Google Maps functionality. Here is a link to the Google … Read more

How to detect a mobile device with JavaScript?

I know this answer is coming 3 years late but none of the other answers are indeed 100% correct. If you would like to detect if the user is on ANY form of mobile device (Android, iOS, BlackBerry, Windows Phone, Kindle, etc.), then you can use the following code: if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) { // … Read more