What are the other ways of getting longitude and latitude of mobile phone other than using JSR-179?

552 Views Asked by At

JSR-179 is an optional package so it requires permissions and certificate signing. So are there other ways of getting longitude and latitude of mobile device through J2ME ?

1

There are 1 best solutions below

5
On

You can connect your Device with external GPS device via bluetooth and fetch GPS details in as NMEA Strings format. You can use StringTokenizer class to fetch the lat-lon details from NMEA Strings.

you can read artical for information.

One more way to your requirement is to fetch Cell-Id, and based on the Google's Reverse API, you can get Latitude-Longitude from Cell-Id.