Maybe y’all can help.

Maybe y’all can help.

I’m wanting to set the ’long tap’ action of an icon to open a URL in my default browser.

It appears there is no plug & play option for this. Is it possible, via a simple script, and if so, might someone be generous enough to write it for me? (I’m completely JavaScript illiterate.)

Also, if I’m missing a built-in way to set a shortcut to a URL, please enlighten me. This would be even better than a script.

Thank you.

(Picture is purely for entertainment and to make this post more interesting.)

]]>

13 Commentsto Maybe y’all can help.

  1. Anonymous says:

    < ![CDATA[

    TrianguloY wrote a script for someone how it worked was 1 tap on the shortcut opened a certain website and 2 taps let you edit what website it opened. Might be worth a looksee

    ]]>

  2. Anonymous says:

    < ![CDATA[

    http://LL.bindClass(“http://android.content.Intent“);


    http://LL.bindClass(“http://java.net.Uri“);



    try{


    var i = new Intent();


    i.setAction(Intent.ACTION_VIEW);


    i.setData(http://Uri.parse(“https://www.google.co.uk“));


    LL.startActivity(i);


    }catch(anfe){


    alert(“No Activity found to handle intent”);


    }

    ]]>

  3. Anonymous says:

    < ![CDATA[

    There is a plug&play way :


    Just choose Launch a shortcut and then Web shortcut on any event😉

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD



    Is that a Chrome shortcut? I disabled Chrome and use Opera, and I don’t have that option under shortcuts.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    No it’s web shortcut

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD​​ I don’t see”web shortcut” either, & I’m using chrome. Michael P. Jackson​​​ you can open a url with the app “more shortcuts” https://play.google.com/store/apps/details?id=com.ss.moreshortcuts. I think it’s free. Just choose “launch a shortcut” but select more shortcuts, then select bookmark & type the title & url.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    bahrta sai, this solution works!



    Jay M, I appreciate the scripting help, but JavaScript is so foreign to me, I’ll stick to plug & play, whenever possible.



    (I can’t even look at it and say, “Ah. I see what you did there. That’s clever.” I have basic knowledge of html, CSS, and a couple others…but Java & JavaScript might as well be Cyrillic or Hebrew, to me. SO LOST I’M NOT EVEN SURE IF I’M STILL IN MY OWN SKIN. LOL)

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Michael P. Jackson I’m not good with JavaScript either, just html/css. That’s how I found more shortcuts.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    bahrta sai perhaps web shortcut on beta/pro only. But I have it.

    ]]>

  10. Anonymous says:

    < ![CDATA[

    I’m on Pro, but I think I left beta. So… that could be.

    ]]>

  11. Anonymous says:

    < ![CDATA[

    Hi I use opera, I can create a link to Url directly from browser. You should click on the menu (near to web address) and click add to home screen. It’s the only way I can help you, I know how to create simple scripts only in linux. 😉


    https://lh3.googleusercontent.com/BD6ZPI5_sdPY1_Nn38ZykAYVqSYf4f_cxSoZXbNa3K2YvGQxgz8uInRISLPOLT5qBCV4MpynAvk

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Michele Borrini you can do that with chrome too. The OP wanted to set the long-tap of an existing icon to open a url, not simply add a new shortcut.

    ]]>

  13. Anonymous says:

    < ![CDATA[

    +Jay M



    I tried setting the action for an item’s long tap, to “run a script” and designating the script you posted above.



    It generates an error on line 2.



    With a working script like that, even I could copy & paste, change the URL (in the script), and give each version its own title in the script editor.



    I’m Java-stupid… not total-tech-stupid.



    LOL

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *