On Sat, Mar 14, 2009 at 4:32 AM, Nio <[email protected]> wrote: > > Hi all, > > Is there any possibilities to call Ril interface from Location Manager > or any other service? > > I'm trying send AT commands to start or control GPS and AGPS via Ril. > And this should be called by Location Manager service. Dose it > possible?
Hi Nio, No, you should not modify the location manager to integrate with your GPS. Instead you should write a shared library in C named libgps.so that implements the interface defined in gps.h. You can look at the file hardware/libhardware_legacy/gps/gps_qemu.c (the implementation for the emulator) as an example of how to do this. Then in your BoardConfig.mk, add: BOARD_GPS_LIBRARIES := libgps to tell the build system to use your library rather than the stubbed out implementation of the GPS API. Mike -- Mike Lockwood Google android team --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
