[android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-09 Thread white
I was under the impression that gps.default.so(or libgps.so) should go to the directory (/system/lib/) instead of (/system/lib/hw/). Also, is it important to name it as "gps.default.so" or it depends on what we specify while editing ./build/target/board/beagleboard/ BoardConfig.mk e.g. BOARD_GPS_L

[android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-16 Thread Lionel Xu
I just got the same problem as you said, which blocked my gps project nearly one week On 5月9日, 下午12时55分, white wrote: > I was under the impression thatgps.default.so(or libgps.so) should go > to the directory (/system/lib/) instead of (/system/lib/hw/). > > Also, is it important to name it as

[android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-17 Thread Lionel Xu
Thanks, What i used is a gps module which connected with our soc via serial port, i think it is a little different from usb-based. My GPS hardware abstraction layer code was also referenced from sdk/emulator/gps/gps_qemu.c, and the associated android.mk is as follow: LOCAL_PATH := $(call my-dir)

[android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-18 Thread Lionel Xu
What i tracked up to now is in function nmea_callback in com_android_server_location_GpsLocationProvider.cpp, there is a line of code as JNIEnv* env = AndroidRuntime::getJNIEnv(); while env just got NULL as return value of getJNIEnv, somebody met this before? Thanks a lots! On 5月17日, 下午1时46分,

[android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-18 Thread Lionel Xu
Hi, All Thanks for your attention, i have found the route cause of this issue, that is Before using the callback function like nmea_callback or location_callback on gingerbread, you should use the new-added callback function create_thread_callback instead of pthread_create or something like that

[android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-23 Thread jack
Hi, Lionel Xu In my xxx_gps_init , i define like blow: nfs_gps_init(GpsCallbacks* callbacks) { GpsState* s = _gps_state; if (!s->init) gps_state_init(s); if (s->fd < 0) return -1; MYD("Start init callbacks"); s->callbacks = *callbacks; return 0; }

[android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-24 Thread Lionel Xu
Hi, Jack Yes, I am a Chinese. You are right, you should move the code " s->callbacks = *callbacks;" ahead to gps_state_init, otherwise you can not invoke the callback function create_thread_cb. On 5月23日, 下午5时09分, jack wrote: > Hi, Lionel Xu > In my xxx_gps_init , i define like blow: > > n

[android-porting] Re: GPS Porting Problems On The Android 2.3

2012-03-11 Thread Ranjini
Hi all, Am trying to port GPS into android through I2C interface. I have created gps.default.so library by making some changes in sdk/emulator/gps/gps_qemu.c and Android.mk file. But am facing an issue in registering my gps_fd, its saying that operation not permitted. Even i have given all the

Re: [android-porting] Re: GPS Porting Problems On The Android 2.3

2011-05-16 Thread WuPublic
Does the usb_based gps emulate as a serial (usb to serial)? And what 's the difference between usb_based gps or uart based gps ? and could you show your Android.mk file to us? 在 2011年5月16日 下午5:38,Lionel Xu 写道: > I just got the same problem as you said, which blocked my gps project > nearly o