Android 6.0.1 kills the Tasker kids app

105 views
Skip to first unread message

GrAnd1

unread,
Dec 18, 2017, 12:24:31 PM12/18/17
to Tasker
Hi. Tell me what can I do to aggressive systemic task killer didn't kill Tasker kids app?
The context of the time I tried did not help.

Pent

unread,
Dec 18, 2017, 1:03:19 PM12/18/17
to Tasker
The settings mentioned here:

http://tasker.dinglisch.net/userguide/en/androidpowermanagement.html

You can set for the child app using the Set Tasker Pref action
*in the child app*.

Try the whitelisting too.

Pent

GrAnd1

unread,
Dec 19, 2017, 5:12:03 AM12/19/17
to Tasker
Thanks for the reply!

Did the following:
1. Tasker Run In Foreground Preference
2. Tasker Reliable Alarms Preference (Always)
3. Android Battery Optimization Setting
Nothing helped!

Run my app in the foreground and enable Tasker in the foreground.
But if to open any app or system settings, as android  kill my app and Tasker remains. Why?
I'm developing my app in Tasker 4.9, as I need to ensure compatibility with SDK 16.
But I tried "As app" the same project on the Tasker 5.0, but the my app doesn't work.
Tried to do it on JF, did not work:
@Override
public void onTaskRemoved(Intent rootIntent){
   
Intent restartServiceTask = new Intent(getApplicationContext(),this.getClass());
    restartServiceTask
.setPackage(getPackageName());    
   
PendingIntent restartPendingIntent =PendingIntent.getService(getApplicationContext(), 1,restartServiceTask, PendingIntent.FLAG_ONE_SHOT);
   
AlarmManager myAlarmService = (AlarmManager) getApplicationContext().getSystemService(Context.ALARM_SERVICE);
    myAlarmService
.set(
           
AlarmManager.ELAPSED_REALTIME,
           
SystemClock.elapsedRealtime() + 1000,
            restartPendingIntent
);

   
super.onTaskRemoved(rootIntent);
}


Pent, I beg you, do action "Open the contacts and return the selected result to a variable".

понедельник, 18 декабря 2017 г., 21:03:19 UTC+3 пользователь Pent написал:

Sean Williams

unread,
Dec 19, 2017, 6:28:27 AM12/19/17
to Tasker
Did the following:
1. Tasker Run In Foreground Preference
2. Tasker Reliable Alarms Preference (Always)
3. Android Battery Optimization Setting
Nothing helped!

What device are you using?

GrAnd1

unread,
Dec 19, 2017, 11:26:57 AM12/19/17
to Tasker
no root

вторник, 19 декабря 2017 г., 14:28:27 UTC+3 пользователь Sean Williams написал:

Pent

unread,
Dec 19, 2017, 12:09:35 PM12/19/17
to Tasker

1. Tasker Run In Foreground Preference
2. Tasker Reliable Alarms Preference (Always)

In the kid app or in Tasker ?

Pent
Message has been deleted

GrAnd1

unread,
Dec 19, 2017, 12:23:09 PM12/19/17
to Tasker
Yes, of course in the kid app.
Can upload logs if it helps.


вторник, 19 декабря 2017 г., 20:09:35 UTC+3 пользователь Pent написал:

Alexander Graetz

unread,
Dec 19, 2017, 5:57:53 PM12/19/17
to Tasker
Did you by any chance disable the tasker service during app creation?

GrAnd1

unread,
Dec 20, 2017, 7:31:40 AM12/20/17
to Tasker
This is where, show? )

среда, 20 декабря 2017 г., 1:57:53 UTC+3 пользователь Alexander Graetz написал:
Message has been deleted

Alexander Graetz

unread,
Dec 21, 2017, 4:10:26 AM12/21/17
to Tasker
Nevermind. I was referring to the "disable" action you can use to stop taskers service. But that has to be called during runtime and not during apk creation.

GrAnd1

unread,
Dec 21, 2017, 6:08:45 AM12/21/17
to Tasker
Action Set Tasker Pref "Use Reliable Alarms (Always)" you need to add to each task or have to be performed once at the first start kid app?
That is a very aggressive task killer in Android 6.0.1, although the Tasker holds much more confident than his kids app.
Is there another solution?

понедельник, 18 декабря 2017 г., 20:24:31 UTC+3 пользователь GrAnd1 написал:
Reply all
Reply to author
Forward
0 new messages