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
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.
if need send custom user-agent, can embedded browser app via webview. can set custom user-agent.
Comments
Post a Comment