문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top