PocketMagic

PocketMagic

Where Technology meets magic


Android
47 Posts
BlackBerry
4 Posts
Electronics
69 Posts
Hardware
123 Posts
High Voltage
49 Posts
Image processing
2 Posts
iPhone
4 Posts
Linux
2 Posts
Nuclear
20 Posts
Optics
11 Posts
Photography
7 Posts
Photoshop
3 Posts
Research
19 Posts
Reviews
18 Posts
Robotics
8 Posts
Security
7 Posts
Software
76 Posts
Symbian
2 Posts
Tubes
20 Posts
Windows
3 Posts
Windows Mobile
11 Posts

Top Articles!       See PocketMagic on Facebook


Building a robot – Part 2 | 8761 Views | Rate 67.39
Building a robot – Part 2
uRADMonitor - Online Radiation monitoring station | 16018 Views | Rate 67.02
uRADMonitor - Online Radiation monitoring station
Bluetooth and iOS - Use Bluetooth in your iPhone apps | 21796 Views | Rate 64.87
Bluetooth and iOS - Use Bluetooth in your iPhone apps
Cartoon yourself using Leptonica | 113 Views | Rate 56.5
Cartoon yourself using Leptonica
NMEA GPS Library for AVR Microcontrollers | 5780 Views | Rate 51.61
NMEA GPS Library for AVR Microcontrollers
A 3D Carousel View for Android | 187 Views | Rate 46.75
A 3D Carousel View for Android
Programmatically Injecting Events on Android - Part 2 | 6468 Views | Rate 46.53
Programmatically Injecting Events on Android - Part 2
Simple Switched power Supplies | 18889 Views | Rate 45.85
Simple Switched power Supplies

 
  

Developing for Google Android – introduction


By Radu Motisan Posted on May 6th, 2009 , 960 Views (Rate 0.64)



  
Android, the mobile platform developed by Google, offers a robust communicator with some exciting features.
Taking Windows Mobile as a reference, the Android comes with some powerful new concepts:
- smooth functionality - no more wait icons, the unit is quite fast
- fingerfriendly everything, especially the Mobile browser is by far better then the WM PIE. Now I can actually USE the mobile internet browser
- some google specific services like google maps, IM, and Gmail, easy to use as well
- slim design, including a full keyboard
- long battery life

All in one, this finally is what a mobile companion should be like, meaning that it does what it's advertised to do - thanks to the way the interface is organized, and the touchscreen, it allows easy and painless interaction with the device. Direct information interchange between the user and the device, taking advantage of the small size. No more need for a sharp stylus, and this is wow!

For this article, here are a few things I'd like to show:
- how to connect the Android to your Windows PC
- how to take screen captures from your Android
- how to install new software on your mobile device

1) First thing after you unbox your device, you need to download a set of tools provided by google.
These tools are for developers, and come as an SDK package, but anyone can install and use them.
So go to this link and click the latest version for the Windows SDK (at the time I wrote this, it was android-sdk-windows-1.5_r1.zip)
2) Once you got the file, unzip it to a local folder on your PC. You should have a folder like android-sdk-windows-1.5_r1.
3) Connect the Android to the PC using the USB cable. When notified that a new hardware has been detected, instruct Windows to look for drivers into the SDK folder: android-sdk-windows-1.5_r1/usb_driver/x86
If you have a micro SD card in your Android, it will appear as a new drive on your PC. Sweet.

Things you can do now: install new software, remove unwanted packages, get a shell on your Android (yes, it's an embedded linux box), or take screen captures (useful for reviews).

So to take a screen capture of your Android, go to the SDK folder and enter Tools. Start ddms.bat .
This utility will allow you to perform various control tasks:

To take a screenshot, go to the Menu, click Device and select "Screen Capture" or directly hit Control+S. Here's what you get:

You can save the file as a PNG image file, and you can also see that the screen has a resolution of 480x320.

To install new software, make sure you're in the same Tools folder of the SDK package (using Total Commander), and type cmd and hit enter. You've just opened a command prompt. Make sure you know where the application installer is (the .apk file) then type:
adb install [APK_FILE_PATH]

And here is the installed software running on the Android G1:

In a similar way you can perform other commands:
adb devices should list the ID of the Android connected to your PC.
adb push [LOCAL_FILE_PATH] [REMOTE_FILE_PATH] will upload a file from the PC to the Android
adb pull [REMOTE_FILE_PATH] [LOCAL_FILE_PATH] downloads a file from the Android to the PC
adb shell a very neat command, actually opens a shell on your Android linux box:

To uninstall software from the Android you can use the device's GUI:
Home->Settings->Applications->Manage Applications or directly the adb uninstall command.

Hope this helps for a start,

Radu Motisan


  

More on PocketMagic:

Atmega8 and enc28J60 for ethernet support | 8774 Views | Rate 27.25
Atmega8 and enc28J60 for ethernet support
How to make metallic sodium | 1382 Views | Rate 26.58
How to make metallic sodium
Tube: USN-5J29 | 1042 Views | Rate 26.05
Tube: USN-5J29
Tube: GP-5 (ГП-5) | 612 Views | Rate 25.5
Tube: GP-5 (ГП-5)
How to set the AVR Fusebits | 2503 Views | Rate 25.28
How to set the AVR Fusebits
Dual H-Bridge for controlling two motors | 2058 Views | Rate 24.8
Dual H-Bridge for controlling two motors

3 Responses to “Developing for Google Android – introduction”

  1. 1
    PocketMagic » Developing for Google Android - update the OS version:

    [...]         « Developing for Google Android – introduction [...]

  2. 2
    Android Guy:

    I just found your site on bingand I’m really happy with what I found. Nice site with solid info. I’ll definitely be back. Thanks

  3. 3
    Luis:

    Hey! I can’t wait for the new Android, but your blog doesn’t load on my Blackberry. Can you give me advice? Merci. luv Luis

Thank you for commenting. Your comment won't show until approved, which can take some time.

Please copy the string oE7EPG to the field below: