Hi RichardC~~ Thanks for your reply.
I am implement GPS hardware on my own platform and I have been create two files named Android.mk and gps_gn7560.c to implement gps interface defined in http://www.netmite.com/android/mydroid/cupcake/development/pdk/docs/gps.html. The libgps.so have created successfully but still have many questions. 1.I create gps_gn7560.c that refer to gps_qemu.c and gps.h(mentioned in http://www.netmite.com/android/mydroid/cupcake/development/pdk/docs/gps.html) but it seems that my function in gps_gn7560.c not called. ex: there is a function in gps_gn7560.c named gps_get_interface( void ) ====================================================================== const GpsInterface* gps_get_interface( void ) ====================================================================== and there is a function call in android_location_GpsLocationProvider.cpp ====================================================================== static jboolean android_location_GpsLocationProvider_is_supported (JNIEnv* env, jclass clazz) { if (!sGpsInterface) sGpsInterface = gps_get_interface(); return (sGpsInterface != NULL); } ====================================================================== I found that it does not call gps_get_interface() in my gps_gn7560.c instead of calling another gps_get_interface() defined in gps.cpp which provided by Android. How can I change it to call my gps_get_interface() 2.How to test GPS if gps is implemented successfully. I know there is a gpstest tool in Android but I don't know how to use it. Can someone tell me the detail about gpstest tool provided by Android. Anyway, I appreciate your reply and suggestion and I will do what you suggest. Marcus On 10月18日, 下午3時37分, RichardC <[email protected]> wrote: > If you are writing a GPS application then I am sorry but I am not > understanding your questions. > > However if you are implementing GPS hardware on your own platform then > you will probably get more response in the Android Platform > forumhttp://groups.google.com/group/android-platform/topics > > -- > RichardC > > On Oct 18, 6:57 am, marcus <[email protected]> wrote: > > > Can anybody give me some advices...thank you!! > > > On 10月16日, 下午6時48分, marcus <[email protected]> wrote: > > > > Hi All~~ > > > > I am porting GPS to Android now. I have been look for many web site > > > relate to Android GPS porting include this group. However, I also feel > > > confused about that. > > > > I have some questions. Can anyone give me some suggestions and I will > > > appreciate about that. > > > > 1.There are 3 files : Android.mk, gps.cpp and gps_qemu.c in hardware/ > > > libhardware_legacy/gps. What is the functionality about the 3 files in > > > directory gps. Should I modify the 3 files to implement GPS. > > > > 2.In this web > > > sitehttp://www.netmite.com/android/mydroid/cupcake/development/pdk/docs/g..., > > > it shows that anyone that want to integate GPS with Android should > > > create a shared library named libgps.so refer to gps.h. My question is > > > how to create a shared library libgps.so.If the libgps.so is created, > > > where can I find it. What is the relation between libgps.so and > > > libhardware_legacy.so. > > > > 3.How to test GPS if gps is implemented successfully. I know there is > > > a gpstest tool in Android but I don't know how to use it. Can someone > > > tell me the detail about gpstest tool provided by Android. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

