device
Why does adb return offline after the device string?
Try the following: Unplug the usb and plug it back again. Go to the Settings -> Applications -> Development of your device and uncheck the USB debugging mode and then check it back again. Restart the adb on your PC. adb kill-server and then adb start-server Restart your device and try again.
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
How to detect a mobile device manufacturer and model programmatically in Android?
You can get as below: String deviceName = android.os.Build.MODEL; String deviceMan = android.os.Build.MANUFACTURER; For more other device details, Please refer this document: android.os.Build
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
List all devices, partitions and volumes in Powershell
To get all of the file system drives, you can use the following command: gdr -PSProvider ‘FileSystem’ gdr is an alias for Get-PSDrive, which includes all of the “virtual drives” for the registry, etc.
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
Logging data on device and retrieving the log
In Xcode 6.1.1, you can view the NSLog output by doing the following. However, I’m not sure if it lets you see logs from too far back in time. I’ve only seen it go back up to a couple hours. In any case, here are the steps: In Xcode, go to Window -> Devices. Select … Read more
Android Device Chooser — device not showing up
First, make sure that the Android ADB can “talk to” your device. Open a Windows Command Prompt (cmd.exe)/Mac Terminal. Go to the folder (via cd) where ADB.exe is in, e.g, C:\Android\android-sdk\platform-tools. Type adb devices If your device is listed (serial number is displayed), go to the second check. Otherwise, this means ADB currently can’t talk … Read more
How to resolve “Waiting for Debugger” message?
Some devices will only let the debugger attach if the application has the android.permission.SET_DEBUG_APP permission set in its manifest file: <manifest> <uses-permission android:name=”android.permission.SET_DEBUG_APP”></uses-permission> </manifest>