I like the size of netbooks, their small size means that you can bring them around easily. What I didn't anticipate was how underpowered the processor really was.
I've been doing development work on the Android platform and I wanted to use the netbook so that I can bring my code around and work on it when time permits.
Problem
Eclipse runs fine on the netbook but the emulator that comes with ADT is another matter. I was totally unable to launch my program from Eclipse using the emulator. It takes ages to get past the Android splash screen and I get a lot of error messages .
Speeding it up
Since android code runs on a Dalvik virtual machine, I could simply grab a x86 android machine and test my code on it. The x86 version should run pretty well on the netbook. I got a copy of Live-Android and a copy of VirtualBox x86 VM and tried the image.
Be sure to boot it using VESA in VirtualBox. Normal boot will produce strange flickering and blank screens.
It works!
How to install app onto Live Android
Live Android is a live cd, which means all data is transient. Once you reboot, all data will be wiped. That includes installed programs.
How do you get around it?
In Virtualbox, configure the Android vm, set your OS to Linux and Version to Linux 2.6
Create a hard disk (I used 100mb which is sufficient for my needs), attach it to the VM
Boot into Android Debug Mode.
You should see a Linux prompt, use fdisk(or cfdisk) to create 2 partitions.
Run "mdev -s" to create the device nodes for your new partitions.
Create file system for both partition
mke2fs -j -L /DATA /dev/sda1
mke2fs -j -L /SDCARD /dev/sda2
Reboot box
reboot -f
At the Android bootloader menu, select VESA and hit TAB, edit DATA=/dev/sda1 and SDCARD=/dev/sda2
Hit enter to resume boot.
To verify that you have mounted both partitions - hit ALT + F1 and issue "mount"
You should see /dev/sda1 and /dev/sda2 mounted.
That's it for the VM configuration. Remember to issue the boot options every time you reboot. I save the machine state when I need to shut it down so I don't have to go through that step every time.
Development Host
What you need:
- Eclipse with ADT installed
- Mongooose HTTP server (or any web server of your choice)
- In Eclipse, right click on your project, select Android Tools->Export Signed Application
- Follow through the dialogs, if you don't have a new keystore and key, create it now.
- Export it to a directory( say e:\projects\Exports)
- Copy mongoose.exe into e:\projects\Exports
- Run mongoose.exe
In Android VM
Configure the Application Settings to allow Unknown Sources
Launch browser, open HTTP://192.168.56.1:8080
You should be able to browse your directory. Download your apk and launch it.
That's it!
Resources