hi,
I read that some devices (and AVD manager) did not handle the class
LocationManager.
In fact, when I call this:
LocationMobile.requestMobileLocation
goes into exception.
I wanted to see if the system could handle this error, but I have problems
with the following call:
r.Target=r.RunStaticMethod("android.location.Locat ionManager",
"isProviderEnabled", Array As Object("android.location.LocationManager.
NETWORK_PROVIDER"), Array As String("java.lang.String"))
I should do something like this:
If (LocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
LocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
LocationMobile.requestMobileLocation
}
can you help me?
I read that some devices (and AVD manager) did not handle the class
LocationManager.
In fact, when I call this:
LocationMobile.requestMobileLocation
goes into exception.
I wanted to see if the system could handle this error, but I have problems
with the following call:
r.Target=r.RunStaticMethod("android.location.Locat ionManager",
"isProviderEnabled", Array As Object("android.location.LocationManager.
NETWORK_PROVIDER"), Array As String("java.lang.String"))
I should do something like this:
If (LocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
LocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
LocationMobile.requestMobileLocation
}
can you help me?