开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜