Category — How Tos
How to get started with Android development
First you need to install the Android development tools. Personally I use Eclipse with the ADT plug-in because it allows you to easily manage Android projects and provides nice integrate with the emulator. Not quite as nice as Xcode but it does the trick.
Android development tools (install in this order)
- Java Development Kit
- Android SDK
(Note: After installing add the location to your PATH system variable.) - Classic Eclipse (v3.5)
- ADT Plugin for Eclipse
This plugin is installed within Eclipse.
Goto Help->Install New Software.
Then add https://dl-ssl.google.com/android/eclipse/ to the “Location” field. After clicking “Ok” to the popup you should see “Developer Tools” added to the list. Check it and click next. Follow through until the Finish. Make sure you restart Eclipse.
Getting something quickly up and running on the emulator
First you need to create a new Android Virtual Device (AVD):
- Goto Window->Android SDK and AVD Manager
- Click “New” at the side to create an AVD
- Enter a name for the AVD (remove all spaces)
- Select a target Android version (most devices these days are running either v2.1+ or v1.6)
- Enter in the size of the SD card (I usually just put 500MiB)
- Then click “Create AVD”
- You can now start up your enumerator by clicking start or it will be run automatically once the Project’s Build Target is set.

Running the sample helloworld application:
- Create a new project using the existing helloworld sample source from the Android SDK directory.
- File -> New -> Project
- Select Android Project
- Create project from existing source selecting the location of the sample HelloWorld application
For example:
C:\android-sdk-windows\platforms\android-4\samples\HelloActivity
(Note: I’m using Android 1.6 (API Level 4) hence the android-4 directory) - Click “Finish”
- Now goto Run -> Run (or press ctrl F11) to compile and run the project
- The emulator will take a while to load but after a while you’ll see the Android UI then the Hello World app pop up.
Note: After you make some changes you normally don’t need to restart the emulator every time, you can simply run again and it will re-install the app. Depending on what you have changed however you may need to uninstall your application first from the settings.
For more information see the Android Development website: http://developer.android.com/sdk/index.html
May 18, 2010 No Comments
How to sync bookmarks on multiple computers and browsers
If you are like me and want to keep your bookmarks synchronized between your Mac (Firefox/Safari) and PC (Chrome/Firefox/IE) I totally recommend Xmarks. Its a small light weight extension to most browser. You can have multiple profiles but I just keep it simple and only have one.
I recommend organising your bookmarks first, then backing them up before installing the plug in. The easiest way to backup in most browsers is to export to an html file.
January 8, 2010 1 Comment
How to add bookmark icons to Firefox toolbar on Mac
If you are like me and prefer to use Firefox rather than Safari on Mac (looking forward to a stable version of Chrome) then the first thing you will notice is there are no bookmark icons on the toolbar which is rather annoying cause the icons make the quick links so much faster to use.
Anyways, the easiest way to enable them is to install the following Firefox addon.
The other way is to install the MacOSX theme but the theme doesn’t look that good so I prefer to use the addon. I did try the latest MacOSX theme but it didn’t have the icons.
January 8, 2010 No Comments