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. How to upload files to Android emulator? How to prepare MediaPlayer?

Hi, I've spent 5 hours but still can't find out. My situation is:

I want to play a video file, so I use VideoView. Then VideoView
requires a file name or an URI, but I have no idea what it is. I have
a local video file, but I don't know how to make it visible by
I tried DDMS, but it just says "Failed to push video.3gp on
emulator-5554: Read-only file system" and rejects my upload. I also
has no idea how to set sdcard.

Thanks for helping!

I tried another way, but when I use MediaPlayer, the prepare() method
throws "ERROR/MediaPlayer(5779): prepareAsync called in state 8" then
crashes. My code is:

        SurfaceView sv = (SurfaceView) findViewById(R.id.viewer);
        MediaPlayer mp = MediaPlayer.create(this, R.raw.video);


        try {
                } catch (Exception e) {
                        // TODO Auto-generated catch block

and this is not called in onCreate(). How can I set the MediaPlayer's
state so it can prepare?


2. connection to a distant socket server

Hi all,
I tried to connect to a distant socket server and i've got this error
message :

ERROR/OSNetworkSystem(458): unknown socket error -1

Since i just do :

Socket conn = new Socket(my.distant.server.ip, my_distant_server_port);

I don't think the code is the problem (on top of that, it work when a launch
this command throught a java). Then I thought it would be an emulator
setting problem. I used this redir cmd but didn't work. If somebody know
about it...


3. Lotto Magic: Home Business Produces High Profits For Members

4. Web search

5. Quirky behavior when rotating screen in API Demos sample, Progress dialog

6. Updated Masa to 0.9 SDK

7. TabActivity throws SecurityException in specific cases only