Last one for tonight.

Last one for tonight.

Would any of our Javascript Gurus be kind enough to provide a script, which could be assigned as an item’s action (for example, on swipe up), which will open http://www.google.com?

I’d like to use it as a template, and modify the URL, as needed, to create several shortcuts.

http://www.google.com
]]>
(Next Post) »

18 Commentsto Last one for tonight.

  1. Anonymous says:

    < ![CDATA[

    var i = new Intent(Intent.ACTION_VIEW);


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


    try{


    LL.startActivity(i);


    }catch(anfe){


    Android.makeNewToast(“Activity not found Exception”, true).show();


    }

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Jay M​


    THANK YOU VERY MUCH!



    It was throwing an error, at first (line 2 needed an additional ‘)’), but now it’s like butter.



    As simple as this must have been for you, given such a quick response, I didn’t know where to start.



    Even looking “under the hood,” I don’t understand it, but I can copy it, rename it, swap URLs, and select it as an action.



    Problem solved, without an additional app!



    Again: Thank you.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    i just pulled it out my web shortcut script and hardcoded the url i must of messed something up before posting it because it worked when i tested it. Glad glad ya got it sussed anyways

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Jay M I thought about trying to extract it out of that script…until I opened it in the editor. 🤔😨🤷 LOL

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Theres loads of Intents you can use with this script btw. Checkout Intents in the Android developer docs you should be able to edit this script quite easily to do other stuff like open the battery usage screen or something.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Michael P. Jackson you could even use LL variables instead of setting the url so you’ll have only 1 script which you call with the variable as parameter.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD​, I have no idea what you are talking about, but it sounds practical…so I guess I need to do some reading.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Michael P. Jackson when you call a script you can send parameters

    ]]>

  9. Anonymous says:

    < ![CDATA[

    +Bruno-Isa LAMOUR-ARNOULD how do send a variable as a parameter?

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Param=LL.getEvent().getData();

    ]]>

  11. Anonymous says:

    < ![CDATA[

    To set on your first line of your script

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD​​ I know how to use parameters, just not how to call them in the script. What I want to do is modify the script in the first comment (from Jay M​​​) so that I can run this script & just put in the URL I want to open as a parameter instead of it being “hardwired” into the script & having to edit the script itself each time I want to open a URL.

    ]]>

  13. Anonymous says:

    < ![CDATA[

    There was a parenthese ) missing on line 3 from JayM copy so it gave me some trouble lol

    ]]>

  14. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD that’s what I was looking for. Thank you.

    ]]>

Leave a Reply

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