I had reported earlier how I had gotten a C Hello World statically-linked program running on my Android phone using CodeSourcery's toolchain (on linux). Today I got a dynamically-linked Hello World program running on the phone, compiled using Android's prebuilt toolchain from the source.
It's well known that Android uses a stripped down version of libc, called bionic. When you compile your program with static linking, you don't use bionic because well, you linked statically. This is non-ideal. You want to use the bionic library on the phone, and besides you want to compile using Android's prebuilt cross-compiler arm-eabi-gcc
If you are anxious to get things working, use agcc, a perl wrapper over arm-eabi-gcc that sets up everything for you so that you can just:
$ agcc hello.c -o hello
http://www.computerworld.com.au/article ... =4&fpid=18
Specifically, the two got Android running in desktop Linux mode on a netbook, the Asus Eee PC 1000H. This is a pretty standard netbook. If you can get Android to run on it, you shouldn't have much trouble getting it to work on any desktop.
While it is true that Android's applications are written in the JVM (Java Virtual Machine, Dalvik, instead of Linux developers' eternal favorites, Gnu C or C++, Android already includes a set of C/C++ libraries. So, porting GCC (GNU Compiler Collection) shouldn't be that difficult. After that's done, bringing over OpenOffice 3.0 or the like would be trivial.
http://ranahammad.wordpress.com/2009/01 ... platforms/
Smartphone programming is booming. The little leash that lets your boss reach out and ruin your time off is turning into a platform of seemingly infinite possibilities. It’s more than just iPhone applications that simulate a glass of beer that drains as the accelerometer measures the amount of tilt. The new smartphones can act as a wallet, a personal shopper, a personal trainer, and a source of endless amusement.
http://the-gadgeteer.com/2009/01/23/a-w ... nt-page-1/
The G1 was originally released by T-mobile and locked to their network. Since I’m an AT&T customer and we don’t even have T-mobile coverage in my area, I figured I’d have to wait until unlocked versions of this phone showed up on eBay before I’d be able to get my hands on one.
But now it’s even easier to get an unlocked G1… You just sign up as a developer at the Android Market. Don’t worry, you don’t have to prove that you can write a Hello World program in C++ or anything like that. You just login, sign-up, pay the $25 registration fee and presto, you’re a bona fide G1 developer. Then you can immediately buy a totally unlocked G1 for $399, which is just what I did.
Cheers, Roman