문제

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 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top