Archive for May, 2010

Installing Android SDK on Ubuntu 10.04 LTS ( Lucid Lynx )

May 12, 2010

This post is to explain steps required to setup Android SDK on Ubuntu 10.4 (Lucid Lynx). http://developer.android.com/sdk has most of the information required to do this setup, but i still faced not so significant problems in setting the environment.I hope this small write up can help you not to run into the problems i faced with latest Ubuntu installation.

Following packages/software needed to be present  to start with Android development.

  1. JDK 6
  2. Eclipse (Ganemyde/Galelio)
  3. Android SDK tools

Setting up Sun’s JDK 6 on Ubuntu 10.04 is not straight forward(at least with just installed Ubuntu 10.04 machine). Sun’s JDK 6 package name is sun-java6-jdk.“sudo apt-get install sun-java6-jdk” doesn’t work as this package could not be found with the repositories present in /etc/apt/source.list. It is required to update the sources.list with following lines

deb-src http://archive.canonical.com/ lucid partner
After adding the above lines do an “sudo apt-get update”, after this steps “sudo apt-get install sun-java6-jdk”  should install the latest Sun’s Java Development Kit. You don’t have to modify PATH or add JAVA_HOME to .bashrc as the java binaries are installed to /usr/bin and /usr/lib. If you download the jdk installable form Sun’s website and extract it on your own, you need to update PATH and add JAVA_HOME to you environment variables, instead of doing this you can update the sources.list and follow the above steps.Post in techgyan by Aditya (http://www.techiegyan.com/?p=1362) helped me to do this.Thanks to Aditya.

Next step will be downloading the right version of Eclipse IDE.To keep the setup simple i downloaded Eclipse JAVA IDE from http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/eclipse-java-galileo-SR2-linux-gtk.tar.gz. Just unzip the tar ball you can see the eclipse folder.
Now download the Android SDK tools from http://developer.android.com/sdk/index.html, extract it and add android-sdk-linux_86/tools to PATH variable, so that android tools will be located by Eclipse.Start the eclipse and install the ADT plugin by following instructions at http://developer.android.com/sdk/eclipse-adt.html.Use window->Android SDK and AVD manager to download latest android platform and google maps API ( detailed steps are at http://developer.android.com/sdk/adding-components.html ).


Now the setup is complete, you can create HelloAndroid application and start developing the applications. If you are behind a proxy/firewall start the emulator and run the following command from android-sdk-linux_86/tools:
./adb shell sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db “\”INSERT INTO system VALUES(99,’http_proxy’,'[HOST]:[PORT]’);\””
*replace the HOST:PORT with valid proxy details.

Steps to retrieve the IMSI number

May 10, 2010

IMSI stands for Inernational Mobile Subscriber Identity and this can be used to uniquely identify the SIM and mobile phones use it to register with mobile network.

If you can enumerate your mobile phone as a modem and using the corresponding COM port in the Hyperterminal utility in windows you can retrieve the IMSI number.It is required to use AT ( stands for attention ) commands to get the IMSI of the SIM in the device.

You can google for the AT command list, I don’t want to keep this post in drafts anymore, so I have to ask you to google for AT commands 🙂