queries about libgps.so and libhardware.so

by www_...@yahoo.com.cn » Fri, 06 Mar 2009 15:06:03 GMT

Sponsored Links
 Hi all,
I implement my GPS function in the file gps_hardware.c ( instead of
gps_qemu.c,I create it), and so I change the Android.mk here as below:

    LOCAL_SRC_FILES += gps/gps_hardware.c
LOCAL_SRC_FILES += gps/gps.cpp

And I build the project.  After that, I find a gps_hardware.o and a
gps_hardware.p are created in the out/target/product/generic/obj/
SHARD_LIBRARIES/libhardware_intermediates/gps/ directory.

But the debug board I debug is Marvell board. So I have to copy the
files (like gps_hardware.o or any others) that relate to  GPS function
I have implemented to the project of Marvell.  I am not sure which
file (like libhardware.so , gps_hardware.o or others) I should copy to
the Marvell project.

Does anyone have any ideas about this issue?


queries about libgps.so and libhardware.so

by www_...@yahoo.com.cn » Fri, 06 Mar 2009 15:13:09 GMT

 Maybe I just implement and build it in Marveel project is better.
And so I have another question, if I wanna build my implementation as
a so like libgps.so, what should I do ?


Sponsored Links

Other Threads

1. Need Help : calling a non-static Java method from C in Android

Hi All

In my Android app, I need to call a  non static java method from C/C++.
But i get a blunt crash when i do it using
GetMethodID/CallVoidMethod()1 methods.

I have done like this:

1. Register the method using GetMethodID() as follows (mine is  a cpp file):

       jmethodID xyz =  (env)->GetMethodID( cls, "showxyz", "()V");

2. And I call this method as follows:

     env->CallVoidMethod(cls, xyz);

3. In java, my showxyz() is defined this way(this basically enables a
button which was disabled)

void showxyz()

And this crashes.

But I have been using this method of calling Java funcs from C using a
set of  GetStaticMethodID/CallStaticVoidMethod()(for nonstatic
methods) and that works always.

But in this case, I have to call a non-static method and i get a crash.

Can anybody please tel me where I am going wrong. I know this is a
basic JNI knowledge. But I am left high and dry. Please do advise.



2. Develop Android app using J2ME Polish


I  m currently evaluating the pros and cons of devleoping the
application for Android devices using J2ME polish, please send me
accross your views on this. What are the technical issues, legal
issues etc....



3. multiple activity refresh

4. Animation using Matrix + Camera looks dirty...

5. Manifest question

6. Android and Accessibility

7. Confusion in me app architecture regarding database