thanks for offering to look at the issue I solved. I was using the application context while creating the itemizedoverlay but we need to use activity context here is a full explanation. I had the exact problem :)
http://tech.shantanugoel.com/2010/07/08/badtokenexception-android-dialog-getapplicationcontext.html -vk On Jul 20, 12:05 am, Kumar Bibek <coomar....@gmail.com> wrote: > Can you paste the stack trace for the same? > > On Jul 20, 9:28 am, AUandroid <thevk...@gmail.com> wrote: > > > Hi all, > > > I am continuously running a thread in my activity which fetches lat/ > > lon information and the overlays on the map are updated dynamically > > through a handler. The overlays can be varying in number and can > > change dynamically. The thread is interrupted in onPause(). > > > I am over riding the onTap() method in my Itemizedoverlay, where I > > want to call a dialog or may be start anothrer activity which > > describes that particular overlay item. Every time I click on the > > moving overlay my app force closes. I am basically using the same > > onTap() method in > > http://developer.android.com/resources/tutorials/views/hello-mapview.... > > . If it is only a Toast message and not starting a dialog/activity > > then it works fine. > > > I am passing application context while creating the ItemizedOverlay, > > which is created and added to mapoverlay inside the handler, . Is my > > problem due to context issue or the continuously running thread. > > Please let me know what you guys think. Thanks > > > -vk -- 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