Hi Pierre Hébert

Hi Pierre Hébert

Could you add Go Back on actions possible on AppDrawer ?

]]>

5 Commentsto Hi Pierre Hébert

  1. Anonymous says:

    < ![CDATA[

    TrianguloY is there a way with scripting to force back ?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    The app drawer is a special container with specific properties, trying to add a shortcut can make the launcher crash or become unstable. If you still want to try, after making a backup, run this from the app drawer itself:



    var uri=”#Intent;action=android.intent.action.MAIN;component=com.android.settings/.Settings;end”


    getEvent().getContainer().addShortcut(“Back”,Intent.parseUri(uri,0),0,0).getProperties().edit().setEventHandler(“i.tap”,EventHandler.BACK,null).commit();





    There is another option that should be better, however I can’t make it work, but try it. Just set this script as the resume event of the app drawer:





    bindClass(“android.view.MenuItem”);



    getEvent().getScreen().showActionBar(create, select);



    function create(menu) {


    var item;



    item = menu.add(“Close”);


    item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);


    item.setIcon(Image.createTextIcon(“E”, 96, 0xffffffff, 0, null).toDrawable());



    return true;


    }



    function select(item) {


    getEvent().getScreen().runAction(EventHandler.BACK,null);


    return true;


    }

    ]]>

  3. Anonymous says:

    < ![CDATA[

    TrianguloY is it possible to set other event than tap ?


    I want to close appdrawer with slide down or slide down with 2 fingers

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Wait…oh, of course.


    And now I understand your question.



    This is the script, just use run script as the action.




    getEvent().getScreen().runAction(EventHandler.BACK,null);

    ]]>

  5. Anonymous says:

    < ![CDATA[

    TrianguloY Perfect.


    Thanks a ton

    ]]>

Leave a Reply

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