Launching MapActivity from another activity

Posted by DixieFlatline on Stack Overflow See other posts from Stack Overflow or by DixieFlatline
Published on 2010-04-27T10:00:06Z Indexed on 2010/04/27 10:03 UTC
Read the original article Hit count: 423

Filed under:
|

Hello!

I have 1 activity and 1 class that extends MapActivity(Lokacija). I added MapActivity to manifest, this line and my build configuration is set to Google API. I want to launch the mapactivity with the press of a button as usually:

final Intent i = new Intent();   
intent.setClass(getApplicationContext(), Lokacija.class); 
startactivity(i);ode here

When i click on a button, I get android runtime exception (no activity found to handle intent). I has to be something with class extending MapActivity, but i don't know what. Any suggestions?

© Stack Overflow or respective owner

Related posts about android

Related posts about java