Autostart an app created with tasker on every boot; is it possible?

3,552 views
Skip to first unread message

Dosky

unread,
Mar 24, 2013, 8:44:20 AM3/24/13
to tas...@googlegroups.com
Hi all,
I'm looking for a way to autostart an app created with tasker on every boot.
I have created a task (not a profile), than i have exported "as app" and this app seems to work properly but only if i start it manually. How can i start it on every boot?

My app is very simple:
A1 If &TIME > 3
A2 Airplane Mode ON
A3 End If
A4 If &TIME > 7
A5 Airplane Mode OFF
A6 End If

GermainZ

unread,
Mar 24, 2013, 10:09:46 AM3/24/13
to tas...@googlegroups.com
Just have an "On boot" profile launch it, and export the profile.

Dosky

unread,
Mar 24, 2013, 10:32:17 AM3/24/13
to tas...@googlegroups.com
First of all thank you for the answer ;)

What do you mean? I have created a task, not a profile, because i need to export it as an app (and i don't know how i can export a profile) because i must install it on another device (that haven't root access and also haven't tasker app).

Dosky

unread,
Mar 24, 2013, 1:10:08 PM3/24/13
to tas...@googlegroups.com
Oh!
I have created a project (but i don't know how.. it was only luck) and I have created a more complex app with context, scene and something like this.
Now i have an apk on my sdcard and i hope it works on any android device (especially in devices that aren't rooted and haven't tasker). Is it right?

PS. this app send some notification alert, a popup message and it enable/disable airplane mode. For this action is required root?

mpizgatti

unread,
Mar 24, 2013, 2:50:03 PM3/24/13
to tas...@googlegroups.com
If it relies on profiles etc. then just make sure when you export it as an app that all of the profiles are activated and that tasker is enabled. That's all I do and my profiles and everything works from that individual project. Even the start on boot should work fine, although they may need to run it at least once.

Dosky

unread,
Mar 24, 2013, 6:04:10 PM3/24/13
to tas...@googlegroups.com
My problem is that i need a button on a scene that stop this app until i reboot.
It set airmode on at 03 and airmode off at 07 but, for example, if i need to do a call at 03.10 i must stop this app with a button or something else (for this reason i have created a scene)

Rich D

unread,
Mar 24, 2013, 7:37:55 PM3/24/13
to tas...@googlegroups.com

A few things to do to make it easier to receive help..

1. Use only one post per topic...
2. Post your profile description here.  Menu / export / export description to clipboard.  
3. Write a detailed description of what you are trying to achieve and and the steps that would be required and what is not working for you.

I am not sure why you need a button to turn the app off?

You do realize that once the device boots and the enter task is run and the airplane mode is turned on then you can simply use the device setting ( with a shortcut if you like) to turn the airplane mode off.  Now your app will not turn airplane mode back on until a reboot. 

Do you just want to turn on airplane mode once at boot or are you looking to monitor the setting?

Rich..

Dosky

unread,
Mar 24, 2013, 8:03:24 PM3/24/13
to tas...@googlegroups.com
1. i'm sorry :'(
2. Please note this is a Project converted as app and i can't export it to clipboard but only to XML or as app. So I'll write here all the code but you must consider that this project use two different profile combined (profile 1 and profile 2) that work together.

Profile 1
Context from 03 to 07
enter task:
A1 Airplane mode ON
exit task: 
A1 Airplane mode OFF

Profile 2
Context Device boot
A1 Wait 10s

I also have a scene with a single button "OFF" that isn't working yet (A1 stop); this is where i need to do a manual way to disable the app until i reboot.

3. I need a button on a scene that disable the app until i reboot; if i use device setting, after every minute, airplane turn on automatically :|

Rich D

unread,
Mar 24, 2013, 8:21:58 PM3/24/13
to tas...@googlegroups.com

> 2. Please note this is a Project converted as app and i can't export it to clipboard but only to XML or as app.

From within the projects tab you can export the descriptions of the individual profiles. ( I did not explain this correctly in my post)   Long press on the profile name / export / export description to clipboard.

>
> 3. I need a button on a scene that disable the app until i reboot; if i use device setting, after every minute, airplane turn on automatically :|
>

Your profiles as listed will not turn on the airplane mode every minute so what is turning on airplane mode every minute??

I really think you need to back up a little and give a better description of what you would like to happen and why...

Rich..

Rich D

unread,
Mar 24, 2013, 9:02:56 PM3/24/13
to tas...@googlegroups.com

> 2. Please note this is a Project converted as app

Another note...  I think you would be much better off making this project work in tasker first and then figure out the best way to make it into a app..

Rich....

Dosky

unread,
Mar 26, 2013, 6:32:51 AM3/26/13
to tas...@googlegroups.com
Hi, i'm sorry but i was a little busy.

Il giorno lunedì 25 marzo 2013 01:21:58 UTC+1, Rich D ha scritto:

> 2. Please note this is a Project converted as app and i can't export it to clipboard but only to XML or as app.

From within the projects tab you can export the descriptions of the individual profiles. ( I did not explain this correctly in my post)   Long press on the profile name / export / export description to clipboard.

Ok, this is my project

Profile: Night (34)
Time: From 03:00 Till 07:00
Enter: Aereo on (35)
A1: Notify Cancel [ Title:Day Warn Not Exist:Off ] 
A2: Airplane Mode [ Set:On ] 
A3: Notify [ Title:Night Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ] 
A4: Popup [ Title: Text:Night Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ]

Exit: Aereo off (39)
A1: Notify Cancel [ Title:Night Warn Not Exist:Off ] 
A2: Airplane Mode [ Set:Off ] 
A3: Notify [ Title:Day Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ] 
A4: Popup [ Title: Text:Day Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ] 

Profile: Boot (38)
Event: Device Boot
Enter: Wait (37)
A1: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]

 

> 3. I need a button on a scene that disable the app until i reboot; if i use device setting, after every minute, airplane turn on automatically :|
>

Your profiles as listed will not turn on the airplane mode every minute so what is turning on airplane mode every minute??

I don't know why it turn on airplane mode every minute. I have created it on my Galaxy Tab2 and it has no application. Tomorrow I can test it on my Galaxy S3.
 

I really think you need to back up a little and give a better description of what you would like to happen and why...

Rich..

I need an exported application that automatically turns on airplane mode at 03 and turn off airplane mode at 07. I need an app that can be installed on a smartphone that hasn't Tasker app installed and that hasn't rooted. This application must starts automatically on every boot of android and i need a way to turn off this app (until phone is rebooted) if the user needed it.

Rich D

unread,
Mar 26, 2013, 7:19:57 AM3/26/13
to tas...@googlegroups.com

> Profile: Night (34)
> Time: From 03:00 Till 07:00
> Enter: Aereo on (35)
> A1: Notify Cancel [ Title:Day Warn Not Exist:Off ] 
> A2: Airplane Mode [ Set:On ] 
> A3: Notify [ Title:Night Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ] 
> A4: Popup [ Title: Text:Night Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ]
>
> Exit: Aereo off (39)
> A1: Notify Cancel [ Title:Night Warn Not Exist:Off ] 
> A2: Airplane Mode [ Set:Off ] 
> A3: Notify [ Title:Day Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ] 
> A4: Popup [ Title: Text:Day Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ] 
>

This profile will turn on airplane mode at 3:00 and turn it off  at 7:00.  Even though the profile remains active from 3:00 to 7:00 It will only run the entry task once when first activated. So  the user can manually change the setting during these times and it will stay set to that manual setting until the exit task is fired at 7:00.   Is that what you are looking for?

> Profile: Boot (38)
> Event: Device Boot
> Enter: Wait (37)
> A1: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]
>

This profile does nothing... it will not be necessary  for the above profile to work as a app. 

>  
>>
>> > 3. I need a button on a scene that disable the app until i reboot; if i use device setting, after every minute, airplane turn on automatically :|
>> >
>>
>> Your profiles as listed will not turn on the airplane mode every minute so what is turning on airplane mode every minute??
>
> I don't know why it turn on airplane mode every minute. I have created it on my Galaxy Tab2 and it has no application. Tomorrow I can test it on my Galaxy S3.
>  

This is a problem.. if your airplane mode is getting set every minute you either have a continuous loop going in tasker or another app is out of control.  You can turn off the tasker app to see if that is causing the problem.  If it is then use the run log to find the trouble maker. Press menu / more / run log and see if there is a task continually running. If there is you can go to the tasks tab/ tap on the task name and you should see a red stop icon to stop the task from running..

> I need an exported application that automatically turns on airplane mode at 03 and turn off airplane mode at 07.

You mentioned you would like the user to be able to set these times. I think that might be possible depending on your answer to the next question ..

I need an app that can be installed on a smartphone that hasn't Tasker app installed and that hasn't rooted. This application must starts automatically on every boot of android

So you simply want to turn on airplane mode when the device is booted only if it is within a given time frame.   Correct?

Then turn it off again at a given time ..  correct?

Do yo want to maintain the setting during the given time frame or let the user change it to whatever they desire manually?

and i need a way to turn off this app (until phone is rebooted) if the user needed it.

You should not need to turn it off if you are not trying to maintain the setting.  The user can change to whatever they like. 

Rich..

Dosky

unread,
Mar 26, 2013, 6:35:33 PM3/26/13
to tas...@googlegroups.com

This profile will turn on airplane mode at 3:00 and turn it off  at 7:00.  Even though the profile remains active from 3:00 to 7:00 It will only run the entry task once when first activated. So  the user can manually change the setting during these times and it will stay set to that manual setting until the exit task is fired at 7:00.   Is that what you are looking for?

Yes, this is exactly what i'm looking for. 

> Profile: Boot (38)
> Event: Device Boot
> Enter: Wait (37)
> A1: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]
>

This profile does nothing... it will not be necessary  for the above profile to work as a app.

Okey, my fault. I delete it from this project.

>> > 3. I need a button on a scene that disable the app until i reboot; if i use device setting, after every minute, airplane turn on 

>> Your profiles as listed will not turn on the airplane mode every minute so what is turning on airplane mode every 

This is a problem.. if your airplane mode is getting set every minute you either have a continuous loop going in tasker or another app is out of control.  You can turn off the tasker app to see if that is causing the problem.  If it is then use the run log to find the trouble maker. Press menu / more / run log and see if there is a task continually running. If there is you can go to the tasks tab/ tap on the task name and you should see a red stop icon to stop the task from running..

You are right, there are no reasons. If I test this project under Tasker it works like a charm even if I manually change the setting; if i export it as app it won't work properly and if I manually change the setting, app turns airplane mode to on the next minute.

> I need an exported application that automatically turns on airplane mode at 03 and turn off airplane mode at 07.

You mentioned you would like the user to be able to set these times. I think that might be possible depending on your answer to the next question ..

Yes, this is my goal.
 

I need an app that can be installed on a smartphone that hasn't Tasker app installed and that hasn't rooted. This application must starts automatically on every boot of android

So you simply want to turn on airplane mode when the device is booted only if it is within a given time frame.   Correct? 

Then turn it off again at a given time ..  correct?
Yes.. I need an app that runs in background and during a given time frame (for example 03-07) change airplane mode to on and than to off. I don't want an app that sets airplane mode on during every boot of android.

Do yo want to maintain the setting during the given time frame or let the user change it to whatever they desire manually?

What do you mean? This app must change airplane mode at starting frame time (for example 03) and at ending frame time (for example 07). If user needs to disable airplane mode during this frame time, for example because he needs to call someone, it must be possible.

Rich D

unread,
Mar 26, 2013, 10:29:28 PM3/26/13
to tas...@googlegroups.com

> You are right, there are no reasons. If I test this project under Tasker it works like a charm even if I manually change the setting; if i export it as app it won't work properly and if I manually change the setting, app turns airplane mode to on the next minute.

This seems strange.
Make sure you disable your tasker profile before using the created app on the same device.  I have seen some strange things happen when both are running at the same time.

When you create the app what task do you have selected for the launch task?

There is also debugging you can turn on in the app creation menu.

>>
>> > I need an exported application that automatically turns on airplane mode at 03 and turn off airplane mode at 07.
>>
>> You mentioned you would like the user to be able to set these times. I think that might be possible depending on your answer to the next question ..
>
> Yes, this is my goal.

I think the way to do this would be to change the context to ' Time - every hour-'  this will fire the profile every hour on the hour. Then in your task you will need to test the current time against the user selected times. IE..

If %TIME=%Selectedtimeon
Set airplane on
End if

If %TIME=%Selectedtimeoff
Set airplane off
End if

This of course will limit the selectable times to one hour increments. You could do every 30 min as well of course..

This may fix the problem with getting set every minute as well...

You will need a additional task to have the user input the times and be able to turn off the app as well. This is the task that you should have as your launch task and needs a icon selected for it.  I would use a simple alert / menu for these settings. You can have the menu open a variable input for the times and simply disable the profile to turn app off and enable profile to turn app on. 

Now this is where you would use the 'on boot' context in a additional profile to turn the app back on when the device is booted.

Context: On Boot
Task:
A1. Enable " name of your profile"

Rich....

Dosky

unread,
Mar 27, 2013, 12:34:15 PM3/27/13
to tas...@googlegroups.com
Hi Rich,
I have worked on this app and finally i got it!
I have created a scene with a button that turn off this app (action: disable); to re-enable it, user must open the app from its icon.

Now i need last step: the user must be able to set custom times. I try to work on context as you say (but probably i need a scene to set usertime variable).
Reply all
Reply to author
Forward
0 new messages