Keep Action in MainActitivity when open a new view like Toast
Like Toast, show in the Screen but Activity still remain in MainActivity
my GoogleMAP have some POIs (Point of Interest) in th开发者_JAVA技巧e Map When i click in the POI, it will show the view or new notification
But i want to have ability of clicking another POI to have new view and close the view of POI previous
Thanks all,
Create a static final Toast instance and on the location at where you are showing the toast first call cancel on toast instance in try...catch block and then show in another try catch.
精彩评论