I bought from this seller:
Sony Ericsson LiveView FB Bluetooth Watch Android Phone | eBay
Sony Ericsson LiveView FB Bluetooth Watch Android Phone | eBay
Sub Activity_Resume
Prefs_HandleSettings
Location.requestMobileLocation
If prefsmanager.GetBoolean("FindCell") = False Then
Location.stopMobileListening
End If
End Sub
Sub Activity_Create(FirstTime As Boolean)
Location.Initialize("Location")
Location.requestMobileLocation 'normally this entry is only in Activity_Resume
End Sub
Sub Activity_Resume
Prefs_HandleSettings
If prefsmanager.GetBoolean("FindCell") = False Then
Location.stopMobileListening
Else
Location.requestMobileLocation
End If
End Sub
Sub Location_LocationChanged (Longitude As Double, Latitude As Double, Altitude As Double, Accuracy As Float, Bearing As Float, Provider As String, Speed As Float, Time As Long)
' ToastMessageShow("Lat: " & Latitude & " - Long: " & Longitude, True)
If prefsmanager.GetBoolean("prefs_gps_on") = True Then
gps1_img.Bitmap = LoadBitmap(File.DirAssets,"gps_found.png")
DoEvents
If prefsmanager.GetBoolean("prefs_gps_snd") = True Then
Play_Beep("gps_found", 6)
End If
prefsmanager.SetString("prefs_gps_pos", Latitude & "," & Longitude)
gps1_img.Bitmap = LoadBitmap(File.DirAssets,"gps_on.png")
End If
End Sub
Sub Activity_Resume
Prefs_HandleSettings
If prefsmanager.GetBoolean("prefs_gps_on") = False Then
Location.stopMobileListening
prefsmanager.SetString("prefs_gps_pos", "0,0")
Else
Location.requestMobileLocation
End If
End Sub
LocationManager has been initialized.
** Activity (main) Resume **
LocationManager1stopGPSListening (B4A line: 45)
lm.stopGPSListening
java.lang.IllegalArgumentException: listener==null
at android.location.LocationManager.removeUpdates(LocationManager.java:804)
at com.rootsoft.locationmanager.LocationManager1.stopGPSListening(LocationManager1.java:141)
at com.rootsoft.locationmanager.main._mnustoplistening_click(main.java:445)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at com.rootsoft.locationmanager.main$B4AMenuItemsClickListener.onMenuItemClick(main.java:142)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:545)
at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
at android.view.View$PerformClick.run(View.java:8817)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
java.lang.IllegalArgumentException: listener==null