开发者

How to prevent saving browser pages in activity stack history

  1. User click one button on Activity#1 to start Activity#2.
  2. One button on Activity#2 start system default browser(Intent.ACTION_VIEW) to get Twitter authorized.
  3. After user allow, Twitter redirect user to Activity#2(Custom intent-filter+data) and it save th开发者_如何学Ce tokens.

Now, if I press back key, the app back to browser, how to prevent this and return to Activity#1? Try several Intent.Flag before start browser with no luck.

Thanks.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜