开发者

How to define GPS module in Android?

开发者 https://www.devze.com 2022-12-30 17:12 出处:网络
I\'m porting android to Devkit8000 which is a BeagleBoard clone. I have a GPS module connected on /dev/ttyS0. I could successfully get NMEA output when writing \"cat /dev/ttyS0\" in the terminal开发者

I'm porting android to Devkit8000 which is a BeagleBoard clone. I have a GPS module connected on /dev/ttyS0. I could successfully get NMEA output when writing "cat /dev/ttyS0" in the terminal开发者_StackOverflow社区 emulator.

I want to know how to let android know that there is a GPS module on /dev/ttyS0 and it is outputting NMEA standard? To be able to use the android.location class with it! or test it with any GPS app in the store!

Is there something to edit in the android's source? adding driver for example, writing a code with android-ndk or what?


The interface you must implement is described in the Platform Development Kit and you may want to use the source for the emulated GPS as a reference.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号