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
]]>
< ![CDATA[
But fine after Force closing LLx.. Sounds strange. I’m on MM stock
]]>
< ![CDATA[
I can see Démarré only
]]>
< ![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?
]]>
< ![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
]]>
< ![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
]]>
< ![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
]]>
< ![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.
]]>
< ![CDATA[
Pierre Hébert so could you give the possibility to fire resumed
]]>
< ![CDATA[
Pierre Hébert or check why a call is not possible on Load, please
]]>
< ![CDATA[
Instead of providing a workaround, I would prefer to understand exactly what happens first.
]]>
< ![CDATA[
Pierre Hébert Load event not able to run app..directly or even by script :That’s the issue.
Resumed is able to.
]]>