/** The download request callback routine. */
typedef void (* gps_xtra_download_request)();
/** The download request callback structure. */
typedef struct {
gps_xtra_download_request download_request_cb;
} GpsXtraCallbacks;
/** Extended interface for XTRA support. */
typedef struct {
int (*init)( GpsXtraCallbacks* callbacks );
int (*inject_xtra_data)( char* data, int length );
} GpsXtraInterface;
Can anyone give me usecase when these interfaces/callbacks will be called from any Location based application in Android ? Or What is the purpose of these interfaces/callbacks ?
Mike
--
Mike Lockwood
Google android team
But this API is not intended to be used for applications.
Applications should use the Location Manager instead.
Mike
There is a gps.cpp at hardware/libhardware/gps/gps.cpp. This file is
included in libhardware.so. It is used to communicate with the
hardware specific code in libgps.so.
It turns out that there is also a gps.cpp that is used to build
libgps.so. But this code contains Qualcomm proprietary information
and is not included in the open source release. But if you are
implementing your own GPS, you will have your own implementation of
libgps.so, and it is up to you whether your implementation includes a
file called gps.cpp or not. But anyway, the gps.cpp you see in the
sources is for libhardware, not libgps.
I hope this helps,
Mike
I am responding back on android-platform so other people working on
similar things can benefit from the discussion.
The makefile hardware/libhardware/gps/Android.mk needs to have
BOARD_GPS_LIBRARIES defined. So try adding:
BOARD_GPS_LIBRARIES := libgps
to whatever BoardConfig.mk file you are using. If you do not have
your own BoardConfig.mk file, you should probably set up a
subdirectory of the vendor directory for your hardware. See:
or:
http://android.git.kernel.org/?p=platform/vendor/htc/dream.git;a=tree
for an example of how to do that.
Mike
On Fri, Dec 26, 2008 at 3:25 PM, mak <mayank....@gmail.com> wrote:
> Hi Mike,
>
> I sincerely need your help on this. Please reply with your
> suggestions.
> Let me tell you my scenario.
>
> 1. libgps.so is created as you have mentioned that in your case it is
> Qualcomm proprietary code. In my case, it is my proprietary code.
> Can you tell me How can I link libgps.so to libhardware.so?
> As I am getting error while libhardware.so try to use gps.o which is
> refering libgps.so ( I make sure that libgps.so has all symbols ).
>
> Waiting for your reply.
>
> Thanks.
>
> Regards,
> _-_Mayank Rana_-_
>
> On Dec 23, 11:59 am, "Mike Lockwood" <lockw...@android.com> wrote: