Double tap to open favorite apps

Posted on
  • Hello,

    I realize that first there needs to be an option to add an app to favorites.
    Even without it, is it possible to write an app which will list all apps
    one by one (and start the app by tapping on its name or icon). By swiping left it switches to the next app, and vice versa.
    And this app starts when a double tap event is triggered on "home screen".

    Is this possible to do?

  • So you want a launcher, but that only lists a subset of apps?

    What you're after is very possible. As a start, you can actually just use the existing launcher code:Ā­lob/master/apps/launch/app.js

    I recently added the ability to always run code at startup, so you could for instance add a file called favourite.boot.js and in it put:

    (function() {
      var lastPress = 0;
      setWatch(function(e) {
        if (e.time-lastPress < 0.5) load("");
        lastPress = e.time;
      }, BTN1, {repeat:true});

    That'll load the launcher if you double-tap BTN1 (but will do it regardless of what app you're in, so you may need to be careful!).

    You could then just make your own launcher...

  • That is very much the code I was after. Nice =)

    Thanks for the quick reply!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Double tap to open favorite apps

Posted by Avatar for user110940 @user110940