我在安卓中保存了一个cookie。现在我想将它传递给我的浏览器意图。请看我的当前代码:
Intent browser = new Intent("android.intent.action.VIEW",
Uri.parse("http://mypage.php/memberpagethatrequireacookie.php"));
//putExtra cannot take these arguments -> browser.putExtra("org.apache.http.cookie.Cookie", cookie);
startActivity(browser);
我希望它能够暂时存储在我的浏览器中,以便我的会员页面成功加载。
我的cookie已经从HTTP请求中成功创建,并赋值给List<Cookie> cookie;
。告诉我是否需要提供更多的代码。
有什么想法吗?先感谢了!
Intent
额外信息来接受cookie的未记录协议的可能性非常低。 - CommonsWare