Archive

Posts Tagged ‘SDK’

Easy way to install apk files using Android SDK for Mac

Let’s create a simple Automator app to make installing apk files a little easier.

  • Download the Android SDK for Mac and extract to Android folder in your home directory.
  • Launch Automator and create a new application.
  • Add action “Run Shell Script” with sh shell.
  • Paste this command: ~/Android/android-sdk-mac/tools/adb install -r “$1″
  • Add another two actions shown below if you want a feedback from the script.
  • Save application to the Applications folder.
  • Associate apk files with your new application.

Now you can install Android apps by double clicking on apk files.

Tags: ,

How to emulate a tablet in Android SDK 2.2

Latest SDK now allows developers to create and run virtual devices with tablet-size screen. Just create a new device and set size to 1024×600 or bigger.

Tags: ,

Android Development with Eclipse

If you are interested in writing Android apps, this tutorial is a great place to start:
http://www.vogella.de/articles/Android/article.html

More detailed guide about installing ADB/USB drivers in Windows:
http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/

On Mac, just add path to the SDK to file .bash_profile in your home folder. If you don’t have Path Finder or other file manager that shows hidden files, here is a small guide:

  1. Extract SDK to your Documents folder, as example.
  2. Open Terminal from Applications/Utilities.
  3. In Terminal Type “ls -a” and see if there is a .bash_profile in your home folder.
  4. If not, type:  touch .bash_profile to create this file.
  5. Now type open -e .bash_profile to open it in TextEdit.
  6. Add the following line: export PATH=${PATH}:~/Documents/android-sdk-mac/tools
Tags: ,