Hi Mike,

If I have to implement the interface defined in gps.h, then it means that I
have to add a port which to send AT commands as the port I could use have
been occupied by Ril. And I think it is a bad way to add a new port as the
drivers do not support now. Can you give some more advices? Thanks,Mike.

Nio

2009/3/15 Mike Lockwood <[email protected]>

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to