开发者

Android - Google MAP API and Internal GPS support

1) Does all android phone have Internal GPS? 2) How do we find out if the android phone support开发者_如何学Gos Google Map library through code? 3) If Google map API is not supported, can we bundle it along with our application to make it work?

Thanks in advance.

Regards, Sivaram.


Not all android phones are GPS equipped.. You need to check it using code....

One easy way is to catch Exception and do further processing accordingly..

Google Map API are already bundled in the target API You select . son need for any check....


If the phone doesnt support Google Maps - could you call a URL (which would direct to your own web page) with the Google Maps API displaying the web page thru a webkit browser - ok the maps wouldnt be "in" the phone - but displayed in the phone (albeit thru a web browser) which the user really wouldnt be aware of.


You can use network to detect position instead of GPS

LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); 
Location cur_location = lm.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜