Where does com.google.common.DataRequestListener come from?

by clemsongrad » Thu, 17 Sep 2009 03:23:25 GMT


Sponsored Links
 Folks,

I am using Android 1.5 R2.  We are testing an application that uses
com.google.common.DataRequestListener?

Where does this class come from?  I cannot find it any jar bundled in
SDK or add-ons (maps.jar).

Any ideas?

btw: I found some documentation on this
 http://www.androidjavadoc.com/m5-rc15/com/google/common/DataRequestListener.html. 

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~



Where does com.google.common.DataRequestListener come from?

by Mark Murphy » Thu, 17 Sep 2009 04:11:58 GMT


 


That class is very very old and was removed prior to Android 0.9
shipping, IIRC.

The application will need to be updated to a newer version of the
Android API.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books.html 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Where does com.google.common.DataRequestListener come from?

by clemsongrad » Thu, 17 Sep 2009 04:19:52 GMT


 Thanks Mark, that is what i am afraid of.





--~--~---------~--~----~------------~-------~--~----~



Where does com.google.common.DataRequestListener come from?

by clemsongrad » Thu, 17 Sep 2009 04:50:57 GMT


 Mark,

Here is what we see in the logs

W/dalvikvm(  705): VFY: unable to find class referenced in signature
(Lcom/google/common/DataRequestDispatcher;)

E/dalvikvm(  705): Could not find method
com.google.common.DataRequestDispatcher.getInstance, referenced from
method com.google.android.maps.MapActivity.createMap

W/dalvikvm(  705): VFY: unable to resolve static method 932: Lcom/
google/common/DataRequestDispatcher;.getInstance ()Lcom/google/common/
DataRequestDispatcher;

W/dalvikvm(  705): VFY:  rejecting opcode 0x71 at 0x0000

W/dalvikvm(  705): VFY:  rejected Lcom/google/android/maps/
MapActivity;.createMap ()V

BTW: This runs just fine in the emulator with 1.5 R2, but not on the
device.

Thanks!






--~--~---------~--~----~------------~-------~--~----~



Where does com.google.common.DataRequestListener come from?

by Mark Murphy » Thu, 17 Sep 2009 06:03:19 GMT


 



I don't know what to tell you. The public SDK does not have
DataRequestDispatcher, nor does it appear in the Android source code.
MapActivity does not have a public createMap() method, either.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books.html 

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Create AVD on a Mac

Hi,

When is send the command "android list targets" in terminal on the mac
(I am in the "tools" folder), then it returns "command not found". Any
idea why this happens?

Cheers,
John

--~--~---------~--~----~------------~-------~--~----~

2. Linux Kernel with SDK 1.5

Hi to everybody :)

I didn't understand which version of linux kernel (modified) is it
used by Android.
I think it was 2.6.25linux kernel for Android 1.0
what about now?

sorry if it's a stupid question, but i can't find it in the site...

Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. How to Disable Onscreen Keyboard

4. DTD file for syntax checking of layouts / manifest files

5. HTC Magic - a few observations

6. How to run android from NAND memory for TI OMAP platform

7. Weird bug when saving picture to file system!?