[android-porting] Re: Can i call Ril function from Location Manager?

2009-03-19 Thread Nio
Hi, does any one can tell me why ? I guess if this sub dir can only be built a libhardware.so, so if i try to build anyother so in the libhardware it reminds me error? On 3月17日, 上午11时30分, Nio wrote: > Hi Mike, > Thanks for your help. > When I do as you said,there are also errors: > build/core/sh

[android-porting] Re: Can i call Ril function from Location Manager?

2009-03-16 Thread Nio
Hi Mike, Thanks for your help. When I do as you said,there are also errors: build/core/shared_library.mk:20:*** hardware/libhardware/gps:Illegal use of OVERRIDE_BUILT_MODULE_PATH. I don't know what was happenning here. what i have done: 1.add to Android.mk as follow: LOCAL_PATH := $(call my-dir)

[android-porting] Re: Can i call Ril function from Location Manager?

2009-03-16 Thread Mike Lockwood
Here is an example of how to build a shared library: http://android.git.kernel.org/?p=platform/external/zlib.git;a=blob;f=Android.mk;hb=HEAD This is the makefile for zlib, which builds both a shared library and an executable program. Here is an example of a BoardConfig.mk file (for the Dream bu

[android-porting] Re: Can i call Ril function from Location Manager?

2009-03-14 Thread Daliang Luo
Hi Mike, How to build a shared library on android? I am not sure as I am not familiar with this and it seems not the same with I build before. And is the BoardConfig.mk you refer to in the directory of /libhardware/gps/? Or somewhere? Thanks again. 2009/3/15 Mike Lockwood > > On Sat, Mar 14,

[android-porting] Re: Can i call Ril function from Location Manager?

2009-03-14 Thread Daliang Luo
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? Than

[android-porting] Re: Can i call Ril function from Location Manager?

2009-03-14 Thread Mike Lockwood
On Sat, Mar 14, 2009 at 4:32 AM, Nio 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 > p