Hi Marcus,
 
Thanks for the interesting post! Looks like you're hacking your way through 
Android.
 
For you information, it became clear Koolu is no longer working on Android fro 
the Freerunner. The community has decided to continue working and moved the 
project to:
 
http://groups.google.be/group/android-on-freerunner
 
and the wiki is on:
 
http://code.google.com/p/android-on-freerunner/

We've already released our first version and we also have weekly and daily 
builds.
 
The community is welcoming anyone who's willing to contribute in one way or 
another. Feel free to join and start your discussions in the new mailing.
 
Looking forward to see you there.
 
Niels.

--
Microsoft gives you windows, Linux gives you the whole house.





________________________________
> Date: Tue, 20 Oct 2009 16:28:32 +0800
> From: lvseis...@gmail.com
> To: android-freerunner@android.koolu.org
> Subject: [android-freerunner] Android GPS Porting
>
>
>
>
> Hi there~~
>
>
>
>
>
>
>
> I am porting Android GPS now.
>
>
>
> I have been created two files named
> Android.mk and gps_gn7560.c. I put these two files in a folder named libgps
> that placed in hardware/s3c6410.
> Then I can build libgps.so successfully. Now I have two questions.
>
>
>
>
>
>
>
> 1.When I boot my device and then logcat, I
> get some log information. Part of the log information about GPS is
>
>
>
>
>
>
>
> D/libhardware_legacy( 1829): ***Get GPS
> Interface***
>
>
>
> D/libhardware_legacy( 1829): *++*using QEMU
> GPS Hardware emulation*++*
>
>
>
> W/GpsLocationProvider( 1829): Could not
> open GPS configuration file /etc/gps.con
>
>
>
> f
>
>
>
> D/GpsLocationProvider( 1829): enable
>
>
>
> W/GpsLocationProvider( 1829): Failed to
> enable location provider
>
>
>
>
>
>
>
> (The first line of this log “D/libhardware_legacy(
> 1829): ***Get GPS Interface***” is add in 
> hardware/libhardware_legacy/gps/gps.cpp
> by myself.)
>
>
>
>
>
>
>
> According to above log information, I found
> that when device booted, it is running
>
> (part of hardware/libhardware_legacy/gps/gps.cpp)
>
>
>
>
>
>
>
> #ifdef HAVE_QEMU_GPS_HARDWARE
>
>
>
>
> if (qemu_check()) {
>
>
>
>
> sGpsInterface = gps_get_qemu_interface();
>
>
>
>
> if (sGpsInterface) {
>
>
>
>
> LOGD("*++*using QEMU GPS Hardware emulation*++*\n");
>
>
>
>
> return;
>
>
>
>
> }
>
>
>
> }
>
>
>
> #endif
>
>
>
>
>
>
>
> to get GPS QEMU interface, but not running
>
>
>
>
>
>
>
> #ifdef HAVE_GPS_HARDWARE
>
>
>
>
> sGpsInterface = gps_get_hardware_interface();
>
>
>
>
> LOGD("Find the GPS hardware on this device\n");
>
>
>
> #endif
>
>
>
>
> if (!sGpsInterface)
>
>
>
>
> LOGD("no GPS hardware on this device\n");
>
>
>
>
>
>
>
> to get GPS hardware interface.
>
>
>
>
>
>
>
> How do I change it to get GPS hardware
> interface? Which file should be modified? I know there are 3 files named
> Android.mk, gps.cpp and gps_qemu.c respectively in 
> hardware/libhardware_legacy/gps/,
> should I modify Android.mk or gps.cpp?
>
>
>
>
>
>
>
> 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 how to use gpstest tool provided by Android.
>
>
>
>
>
>
>
>
>
>
>
> Thanks!!
>
>
>
>
>
>
>
> Marcus                                          
_________________________________________________________________
Je hele online leven op één stek met Windows Live
http://www.microsoft.com/belux/nl/windows/windowslive/default.aspx
_______________________________________________
android-freerunner mailing list
android-freerunner@android.koolu.org
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org

Reply via email to