Estas son algunas de las horas que tengo disponibles:
|
tas...@googlegroups.com lunes, 20 de noviembre, 4:11 p. m.Yes, my phone is rooted. I have a profile called "AppChanged" which detects when there is a new foreground app and sets some global variables to that app's name, that app's package, and the name and package of the previous foreground app and of the penultimate foreground app.<br><br>So, there always is a variable set which contains the name of the currently running foreground app.<br><br>And then I have a task called "KillForegroundApp" which uses that variable to determine the current foreground app, and then kills that app. Here is the code:<br><br> Profile: AppChanged<br> Event: App Changed [ Output Variables:* Package:* ]<br> <br> <br> Enter Task: SetFGAppInfo<br> Settings: Run Both Together<br> <br> A1: Stop [ ]<br> If [ %app_name ~ %FGAppName ]<br> <br> A2: Variable Set [<br> Name: %PenultFGAppName<br> To: %LastFGAppName<br> Structure Output (JSON, etc): On ]<br> <br> A3: Variable Set [<br> Name: %PenultFGAppPackage<br> To: %LastFGAppPackage<br> Structure Output (JSON, etc): On ]<br> <br> A4: Variable Set [<br> Name: %LastFGAppName<br> To: %FGAppName<br> Structure Output (JSON, etc): On ]<br> <br> A5: Variable Set [<br> Name: %LastFGAppPackage<br> To: %FGAppPackage<br> Structure Output (JSON, etc): On ]<br> <br> A6: Variable Set [<br> Name: %FGAppName<br> To: %app_name<br> Structure Output (JSON, etc): On ]<br> <br> A7: Variable Set [<br> Name: %FGAppPackage<br> To: %app_package<br> Structure Output (JSON, etc): On ]<br> <br> #<br><br> Task: KillForegroundApp<br> <br> A1: Kill App [<br> App: %FGAppPackage<br> Use Root: On<br> Continue Task After Error:On ]<br> <br> #