[android-developers] Re: Maps not working in the android emulator

2011-02-27 Thread Rishi Kumar
You posted the stack trace on stackoverflow right?   

This line is in the stack trace: 

Caused by: java.lang.IllegalArgumentException: MapViews can only be created 
inside instances of MapActivity

This is telling me that you're attempting to open a map outside of something 
that extends MapActivity.  Is that the case? 

-rishi

-- 
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

[android-developers] Re: Maps not working in the android emulator

2011-02-25 Thread Indicator Veritatis
True. The error message is not useful. But that is not the OP's fault.

Then again, I remember seeing the same problem. But it didn't do it
every time. So what the OP should have told us: does it consistently
fail? How many times did
he try it?

On Feb 24, 9:57 pm, TreKing treking...@gmail.com wrote:
 On Thu, Feb 24, 2011 at 6:09 AM, Rajkumar BE
 rajkumar.1010lo...@gmail.comwrote:

   I am trying the Google maps API example, but when I run the code emulator
  gives the error The Application has stopped unexpectedly.

 That's a generic error message and is not very useful.

  I have put down the Logcat details below and also attached the screenshot
  of the error.

 http://bit.ly/fJKLV2

 That's useful.
 Are you linking against the Google Maps API addons?
 Do you have the uses-library tag in your manifest?

 --- 
 --
 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 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


[android-developers] Re: Maps not working in the android emulator

2011-02-25 Thread abhi
Create a new AVD targetted for Google Api Addon.check permissions
also.
Hope this will work.





On Feb 24, 3:32 pm, Rajkumar BE rajkumar.1010lo...@gmail.com wrote:
 Hello,
  I am trying the Google maps API example, but when I run the code
 emulator gives the error The Application has stopped unexpectedly. I
 have put down the Logcat details below and also attached the
 screenshot of the error.

 http://bit.ly/fJKLV2

 http://stackoverflow.com/questions/5101958/maps-not-working-in-the-an...

-- 
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