Starting an Activity from ItemizedOverlay
I while back I wanted to be able to start an Activity from a class that extended ItemizedOverlay. Since ItemizedOverlay does not extend Activity I couldn't call startActivity() in order to start a new Activity when the onTap() method is executed.
So after much searching on the internet I found my answer. Only thing is I don't have enough "reputation" on stackoverflow to vote up this particular answer.
Simply calling Context.startActivity(Bundle myBundle); did the job!
I was following the example here: Hello MapView
Original post: StackOverflow post
So after much searching on the internet I found my answer. Only thing is I don't have enough "reputation" on stackoverflow to vote up this particular answer.
Simply calling Context.startActivity(Bundle myBundle); did the job!
I was following the example here: Hello MapView
Original post: StackOverflow post
I'm trying to do something similar. Would you mind sharing an example of the code you used to launch an activity from the ItimizedOVerlay?
ReplyDeleteSure, what is your email address?
ReplyDelete