Skip to main content

Posts

Showing posts with the label android

Take screenshot using adb

Many times, when I am working with the Android devices, I just want to keep using the command line and be able to take the screenshots too. Yes, we can do that! Here is how: Start ADB server if its not already running. To check, type in adb devices on the command line -- if its not started it should start now and give you the device id for the device you have connected Now type in the following commands to capture a screen adb shell screencap -p /sdcard/Pictures/Screenshots/screen.png adb pull /sdcard/Pictures/Screenshots/screen.png adb shell rm /sdcard/Pictures/Screenshots/screen.png

Access Denied Error while installing from Android SDK manager

When you are trying to install API or tools from the android SDK manager and you are getting error like Downloading SDK Platform Android 2.3, API 9, revision 1 File not found: C:\Program Files (x86)\Android\android-sdk-windows\temp\android-2.3_r01-linux.zip (Access is denied) Done. Nothing installed Then you need to close the SDK manager Go to the android/sdk/tools folder Right click on the android.bat file and “Run as administrator”   You need to run as an administrator to install android tools or api

Debug an Android Phone on Windows

To debug an android phone on windows you need to follow these steps: On the Phone Enable USB Debugging on your Phone Enable USB Debugging on the Chrome  browser of your phone On Windows 7 Install the “ADB PLugin” extension on Chrome browser Install the phone drivers needed as per the phone you want to debug Connect the phone to windows Open “ADB Plugin” and start debugging!!!   Important Links http://www.androidcentral.com/how-enable-developer-settings-android-42 http://devtoolsecrets.com/secret/mobile-using-developer-tools-on-android.html https://developers.google.com/chrome-developer-tools/docs/remote-debugging   Hope this helps!

"missing sdk platform android api 17"

When we are updating the API 17, my Android SDK Manager kept throwing me the error “Missing SDK platform android API 17” The steps to resolve this issue: Open SDK Manager Go to Tools, Options Under “Manifest Cache” – Click on “Clear Cache” Then Go to Packages, and click on “Reload” This would show some additional new options for you to install, most importantly you will see the SDK platform listed under API17…The package which was missing!!! Happy Androiding