开发者

How to prevent saving browser pages in activity stack history

开发者 https://www.devze.com 2023-01-21 07:11 出处:网络
User click one button on Activity#1 to start Activity#2. One button on Activity#2 start system default browser(Intent.ACTION_VIEW) to get Twitter authorized.
  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

精彩评论

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