#if JAVA
import android.location.LocationManager;
import android.content.Context;
public boolean isLocEnabled() {
LocationManager locationManager = (LocationManager) this.getSystemService(this.LOCATION_SERVICE);
return locationManager.isLocationEnabled();
}
#End If
Dim jo As JavaObject
jo.InitializeContext
if jo.RunMethod("isLocEnabled",Null) = true then
...
end if