in app, putting icon on action bar warn users when app cannot find current location. pressing icon brings popup window telling them not location , gives them button take them settings. however, if device not support location @ all, customize message , not try take them settings.
is there way programatically tell difference between location off/unavailable , device not have location capabilities?
the locationmanager class has functionality you're looking for. method getallproviders() return list of known location providers, including not permitted accessed activity or disabled. can call getproviders(true) list of location providers enabled.
Comments
Post a Comment