Is there any way to make an intent that open a new empty tab in Chrome ?
Is there any way to make an intent that open a new empty tab in Chrome ?
I know it’s possible to open a URL, but I just want to open a new tab, so I can type in my search (with auto suggestions etc..)
Thanks guys
]]>(Next Post) How to access the appdrawer by using its id of 99? »
< ![CDATA[
Maybe that (not tested) :
new Intent(Intent.ACTION_VIEW, Uri.parse(“about:blank”))
]]>
< ![CDATA[
Pierre Hébert nice try but unfortunatly it doesn’t work… As I think it’s not recognised as a URL (no protocol http or https specified..)
]]>
< ![CDATA[
That’s what I feared too.
]]>
< ![CDATA[
You may also try to force the component name on this intent, if you know which browser you want to use.
]]>
< ![CDATA[
Pierre Hébert hum how can I do that if I assume the target to be chrome ?
]]>
< ![CDATA[
Using a Chrome shortcut item, call getComponent() on its intent to query the current value, and use it with setComponent() on the new intent.
]]>