0

Im trying to create an application. I have launched the default android browser from the main activity using intent as

    Intent i = new Intent();
    i.setAction(Intent.ACTION_VIEW);
    i.setData(Uri.parse("http://www.google.com"));

After launching the browser, I need to customise the browser functionality such that when a user long press or tap the browser window, the current url should be saved as a shortcut in the homescreen. How can I implement this.

1 Answers1

1

Your app can not monitor browser action like long press or tap the browser window. But you can do other way, like implementing "Share action". When user want to create short cut, just tell them to do "Share action". Adding an Easy Share Action

Nguyen Duc An
  • 193
  • 1
  • 4
  • will the share action work for the default android browser? Since my requirement is to create the shortcut dynamically while the user is still browsing and without the browser exit. – user2552212 Jul 05 '13 at 09:24