Reputation: 19297
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
?
Upvotes: -1
Views: 535
Reputation: 29632
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
.
Upvotes: 2