I have a class I wrote that uses the maps and works in a activity, but still returns the stub error when I attempt to instantiate it in a live wallpaper.
It's supposed to be in a MapActivity, but I figured since Google uses maps in a live wallpaper I could use it as well, although I know this is not always the case. I've learnt the hard way that just because Google does something with android doesn't mean they expose those methods to the developers. Adam On Nov 13, 10:07 am, Chister Nordvik <[email protected]> wrote: > Did you ever figure this one out? I tried to create a very simple map > application, but got the "stub" exception at startup both on device > and in emulator: > E/AndroidRuntime( 263): Caused by: java.lang.RuntimeException: stub > E/AndroidRuntime( 263): at > com.google.android.maps.MapActivity.<init>(Unknown Source) > > Followed the tutorial from > here:http://developer.android.com/guide/tutorials/views/hello-mapview.html > with no success. Must be something with the setup? > > -Christer > > On Nov 2, 1:48 pm, Adam Hammer <[email protected]> wrote: > > > That is the entire error. 2 Line stack trace, I called the function > > and I get the "Stub" > > > I've managed to get MapView working in a activity with Opengl and > > using offscreen rendering. It's actually performing very well. > > > I'll go back and try in a LWP once I iron out all the activity bugs. > > > On Nov 1, 9:41 am, TreKing <[email protected]> wrote: > > > > On Fri, Oct 29, 2010 at 6:00 PM, Adam Hammer <[email protected]> > > > wrote: > > > > I get an error > > > > >java.lang.RuntimeException:stub > > > > at com.google.android.maps.MapView.<init> (Unknown Source) > > > > Is that really the entire error? > > > > Regardless, read the MapView documentation. It explains where and how the > > > MapView can be used. > > > > --------------------------------------------------------------------------- > > > ---------------------- > > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > > > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

