Hi Ali

Hi Ali

Y have an issue when trying To run an App on Load évent

LL.startActivity(LL.getContext().getPackageManager().getLaunchIntentForPackage(“com.katecca.screenofflock”));

Android.makeNewToast(“Démarré”, false).show();

LL.startActivity(LL.getContext().getPackageManager().getLaunchIntentForPackage(“com.katecca.screenofflock”));

The App is not ran after. Reboot

]]>
« (Previous Post)

11 Commentsto Hi Ali

  1. Anonymous says:

    < ![CDATA[

    But fine after Force closing LLx.. Sounds strange. I’m on MM stock

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I can see Démarré only

    ]]>

  3. Anonymous says:

    < ![CDATA[

    There is probably some hint from Android in your logcat about the reason why it doesn’t display the activity.


    This could possibly be linked with:


    – context of execution : if launched from a service (in particular the floating desktop), you may have to add the FLAG_ACTIVITY_NEW_TASK to the intent.


    – time of event : load may happen at some early moment. If Lightning is itself loading some screen it may “conflict” with the new app launch, or the launched app may be launched but moved “behind” the launcher?

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Pierre Hébert the App is Screen Off so must not behind the launcher.


    Context of execution is Load event of the main Desktop.. Checking if something under logcat

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Found a way.. Yessssss


    Setting a variable to zero on Load event and then on resumed event if zero Load screen off and set To 1.



    I love LLx. All is allways possible.



    But not able to run an app on Load from a script has to be rechecked and handled or a warning to be set.. Perhaps Android limitation

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Just 1 thing.


    Is it possible to trigger Resumed 1 second after Load ?


    Seems I have to display the App drawer for having the first Resumed event.. Pierre Hébert​

    ]]>

  7. Anonymous says:

    < ![CDATA[

    No, everything need to be done in sequence. Things would start to go wrong if the next paused event is fired less than 1 second after resume for instance.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Pierre Hébert so could you give the possibility to fire resumed

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Pierre Hébert or check why a call is not possible on Load, please

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Instead of providing a workaround, I would prefer to understand exactly what happens first.

    ]]>

  11. Anonymous says:

    < ![CDATA[

    Pierre Hébert Load event not able to run app..directly or even by script :That’s the issue.


    Resumed is able to.

    ]]>

Leave a Reply

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