android - How to set user agent for new ACTION_VIEW intent -


in application launching new intent url (browser) using following code:

intent myintent = new intent(intent.action_view,uri.parse(url));                 try {     context.startactivity(myintent); } catch (activitynotfoundexception e) {     log.e(tag, "cannot initiate browser", e); } 

is there way tolet new activity send user agent

thanks -z

  1. one can not programmatically set (from within app) user's browser display custom user-agent string. however, users can hand via fiddling, set system wide.

  2. if need send custom user-agent, can embedded browser app via webview. can set custom user-agent.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -