I apologize if this is a duplicate post. I tried posting this over an hour ago and there is no indicator that it posted.
I am attempting to launch a dialog type window when I click an Overlay that has been placed on google maps. I thought the way I would do this was Override the onTap() method, create an intent, and call startActivity on that intent as follows: Intent myIntent = new Intent(context, MyActivity.class); myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(myIntent); It looks like the program throws an ActivityNotFoundException when executing that last line. The exception reads that if you try to start an Activity while you are not in an Activity you need to set the FLAG_ACTIVITY_NEW_TASK flag which is why that line is there. I have included MyActivity in my manifest. 'context' is passed to my class constructor that extends Overlay and is the MapActivity that I am using to display the map. Considering how I have not been able to find anyone on the internet with this problem, I am beginning to think I am going at this all wrong. If anyone knows of a good description of how what I am trying to do is supposed to work or a tutorial doing what I am trying to do, please post that. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---