Its really nice to have such a developer who responds very fast.
Thanks to both of you.

Yes Kevin is right.
I want the bubble/dialog which can show the information about that
marker and two images to go another Activity.
I dont know about Starbucks. Let me see about that.

To TreKing :
Here i am creating my dialog.

public class HelloMapView extends MapActivity{

@Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.map_test);
                ..............
                ............
         }
         private class HelloItemizedOverlay extends
ItemizedOverlay<OverlayItem> {


                public HelloItemizedOverlay(Drawable marker) {
                        super(marker);
                        this.marker=marker;
                        :::::::::::::::::::
                        :::::::::::::::::::

                }

               :::::::::::::::::::::::::::

               ::::::::::::::::::::::::::

               protected boolean onTap(int i) {

                        Log.i("*** OnTap"," i "+i);

                       // ( i is the marker Clicked)

                /*      // This Working fine
                        Toast.makeText(HelloMapView.this,
                                                                                
        items.get(i).getSnippet(),
                                                                                
        Toast.LENGTH_SHORT).show();
                */
                        showDialog(i); // This even not calling
onCreateDialog

                        return(true);
                }

                protected Dialog onCreateDialog(int id) {

                        Log.i("Before View ","******");
                        LayoutInflater factory = 
LayoutInflater.from(HelloMapView.this);
                        final View textEntryView = factory.inflate
(R.layout.mapLayout, null);


                     return new AlertDialog.Builder(HelloMapView.this)
                    .setIcon(R.drawable.mls)
                    .setTitle("Detail")
                    .setView(textEntryView)
                    .setPositiveButton("OK", new
DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int
whichButton) {
                                log.i(" Ok Button Click"," Here");
                        }
                    })
                    .setNegativeButton("Cancel", new
DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int
whichButton) {


                        }
                    })
                    .create();
              }
         }
}

Please suggest

Thanks


On Jan 29, 12:24 am, Kevin Duffey <[email protected]> wrote:
> I think he wants to display a sort of small bubble thing above the marker,
> not a large dialog with it's own activity. Google maps does this.. you
> search for Starbucks, it shows 10 red dots, you click on one and it pops up
> a little bubble over the dot you clicked show minimal info. If you click
> that it takes you to another view/activity with more details.
>
>
>
> On Thu, Jan 28, 2010 at 10:31 AM, TreKing <[email protected]> wrote:
> > On Thu, Jan 28, 2010 at 1:20 AM, mapper <[email protected]> wrote:
>
> >> It works fine
> >> when I use with Toast but not for Custom Dialog.
> >> When I tried to display custom dialogbox it gives me RunTime error
> >> (Force Close).
> >> How can I show my customDialog on the click of the marker?
>
> > That's not much to go on. What's the runtime error? How are you trying to
> > show the dialog?
>
> > --------------------------------------------------------------------------- 
> > ----------------------
>
> > TreKing - Chicago transit tracking app for Android-powered devices
> >http://sites.google.com/site/rezmobileapps/treking
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > [email protected]<android-beginners%2Bunsubscr 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to