Pass cookie to browser via Intent

前端 未结 3 1686
没有蜡笔的小新
没有蜡笔的小新 2021-02-06 00:30

I have saved a cookie in android. Now I want to pass it into my browser intent. Look at my current code:

Intent browser = new Intent(\"android.intent.action.VIEW         


        
3条回答
  •  执笔经年
    2021-02-06 01:16

    The above code is working fine to set headers (thanks for it), but I wasn't able to set cookies that way. What I suspect is that if the web browser already has cookies stored for the target URL, it will overwrite cookies created using EXTRA_HEADERS.

提交回复
热议问题