Hello,


I have searched this group's archives, and several other sources for

information on direct access to GEARS geolocation functions from an

Android application. To date, I have not found any.



geolocation includes three Android-specific public Java classes,

AndroidGpsLocationProvider, AndroidRadioLocationProvider, and

AndroidWifiLocationProvider. The fact that they are Android-specific

and that they are public lead me to conclude that I should be able to

use these classes in my application.



However, not surprisingly, when I try to access these classes, my

application fails (see log below) because, among other things, I have

no way to correctly identify nativeObject in the java classes.



I would appreciate anyone's feedback, suggestions, and help in

resolving this problem. At the very least, I would like to understand

the purpose of the three Android-specific public Java classes, and how

we should use them.



Thanks.



Alex  Donnini





07-15 20:51:28.779: WARN/dalvikvm(31357): No implementation found for

native Lcom/android/universallocation/

AndroidRadioDataProvider;.onUpdateAvailable (Lcom/android/

universallocation/AndroidRadioDataProvider$RadioData;J)V

07-15 20:51:28.789: WARN/dalvikvm(31357): threadid=3: thread exiting

with uncaught exception (group=0x4000fe70)

07-15 20:51:28.799: ERROR/AndroidRuntime(31357): Uncaught handler:

thread main exiting due to uncaught exception

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):

java.lang.UnsatisfiedLinkError: onUpdateAvailable

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

com.android.universallocation.AndroidRadioDataProvider.onUpdateAvailable

(Native Method)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

com.android.universallocation.AndroidRadioDataProvider.notifyListeners

(AndroidRadioDataProvider.java:236)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

com.android.universallocation.AndroidRadioDataProvider.onCellLocationChanged

(AndroidRadioDataProvider.java:229)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

android.telephony.PhoneStateListener$2.handleMessage

(PhoneStateListener.java:251)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

android.os.Handler.dispatchMessage(Handler.java:99)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

android.os.Looper.loop(Looper.java:123)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

android.app.ActivityThread.main(ActivityThread.java:3948)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

java.lang.reflect.Method.invokeNative(Native Method)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

java.lang.reflect.Method.invoke(Method.java:521)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run

(ZygoteInit.java:782)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)

07-15 20:51:28.859: ERROR/AndroidRuntime(31357):     at

dalvik.system.NativeStart.main(Native Method)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to