[android-porting] Use of acquire_wakelock_cb in GpsCallbacks

2011-03-21 Thread 94087
What is the proper use of this new Gingerbread API? I've seen the system will still suspend the device if I call this, even if never calling release_wakelock_cb(). What is the correct way to prevent the device from suspending during an ongoing periodic request, during navigation for example? Or

[android-porting] procedure to add a new device driver to an image?

2011-02-05 Thread 94087
We distribute device driver code to our customers, which they can build and include in android images. We'd like to make our distribution closer to what customers need, so that they can drop in our code with minimal moving around and modifying of makefiles, and get our driver into their image easie

[android-porting] code for different android versions

2011-01-31 Thread 94087
I have some C++ code that I need to modify slightly for Gingerbread, but the new code cannot be used for earlier android versions. What can I use to #ifdef out the newer code when building for older versions? I've searched through the aosp but couldn't find anything. Thanks for your help. -- u