开发者

Keep Action in MainActitivity when open a new view like Toast

开发者 https://www.devze.com 2023-02-16 12:07 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消