sanket
sanket

Reputation: 789

Codename one LocationManager.getLocationManager() null

When can LocationManager.getLocationManager() return null ?

GPS is switched off ? Location not available from carrier ?

I think it throws an IOException in these cases ?

Can it return a null ?

Upvotes: 0

Views: 202

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

It can return null for some older J2ME devices which might not have support for location (it will work for most recent J2ME devices too). It shouldn't return null for other cases e.g. iOS, Android, Windows Phone etc..

Upvotes: 1

Related Questions