tags:

views:

33

answers:

1

I have never tried out the Android SDK and do not own an Android phone. However it seems that certain libraries are excellent, for example the text to speech lib. Is it possible to use this library with a desktop VM and did anybody here try this?

A: 

You could get the sources from android.git.kernel.org and try to rebuild them against a desktop environment, but it would be a lengthy project - you need not only the java stuff, but the underlying drivers, native libraries, customized c library, and add-on os functionality to support them.

The android SDK includes a qemu-based phone emulator in which most functionality works as on the device. This should be fine for playing with the capabilities, though is not something you would want to use to deploy them. There is also an x86 community build of android which people put on netbooks or run in virtualbox. Word is that the official android emulator may be moving to something similar since it's substantially faster to run x86 code on a customized os image in a vm than to emulate an arm processor.

There's also something of a simulator which tries to provide enough of the android o/s services to sort of run apps natively on the development machine without a vm, but the google folks have implied its a bit of a hack and not well maintained.

Chris Stratton
So u argue that the Java libs are mostly frontends to underlying C code and therefore one would have to port the native libs first..
Nils
Not 'mostly front ends to' as there's a lot of functionality in the java, but they do depend on quite a bit of native code and native o/s services. Read the docs, download the SDK and play with the emulator.
Chris Stratton
Heh that's what I wanted to avoid, as I'm just interested in the TTS lib..
Nils
Then look at the source of that and see what its dependencies are
Chris Stratton