Hello,

I looked for any information about onTap event processing for itemized
overlays in this group. There is a lot of useful information but I
could not find the answer to one question.

The tutorial by Mark Murphy on itemized overlays, http://androidguys.com/?p=1413

describes how to generate a Toast message whenever an onTap event
occurs. In his case, the custom itemized overlay activity is included
in the main activity. In my case, it is not. My custom itemized
overlay activity is included in the application package as a public
activity.

This means that the line

Toast.makeText(NooYawk.this, items.get(i).getSnippet(),
Toast.LENGTH_SHORT).show();

will not work "as is".

I have had trouble in correctly identifying the context for the Toast.
Attempts to use the main class' (the one calling the custom itemized
overlay class) context have not worked. I would appreciate it if
anyone could suggest how I could resolve this issue. Incorporating the
custom itemized overlay class in the main class is not a desirable
option.

Alternatively, I would appreciate any suggestions for generating a
display of the title and/or snippet information for markers on a map.

Thanks.

Alex Donnini

P.S. the onTap event works fine (Log.i statements in the onTap method
display the correct information for each marker tapped)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to