Saturday, October 21, 2017

Dynamic launcher with Tasker?


I'd like to use Tasker to switch my launcher: when I'm at work I need certain apps to be easily available, while when I'm home I want Nova launcher with all my apps. How can I do that? Thanks.



Answer



This is a bit dirty solution, but gets the job done.


Note: Tested the solution on Android 4.2.1 having default Android launcher and Smart Launcher Pro.


Requirements:



  • Device should be rooted





I'm assuming:




  • Your timing for work (i.e. entering and leaving the office) are more or less same for working days. Let's say the timing is 10:OO AM - 06:00 PM, and the rest is for home or other things.




  • You're using your device's default launcher and Nova Launcher.





Instructions for Tasker:




  1. Make Nova Launcher as your default launcher by using step 2 and 3 from this answer by Josh Holland.




  2. Launch Tasker.





  3. Create a Profile under Time with parameters as:



    • From: 10:00

    • To: 18:00




  4. Create a task with action Code → Run Shell, and fill these details:



    • Command: pm disable com.teslacoilsw.launcher


    • Timeout (Seconds): 10

    • Check Use Root, leave other things untouched and save the action




  5. Under the same task create a new action App → Launch App. Under the App Selection window tap All (at the bottom) and choose the default launcher. Save this action with other things untouched.




  6. Create another profile under Time with parameters:




    • From: 18:00

    • To: 10:00




  7. Repeat step 4 with details:



    • Command: pm enable com.teslacoilsw.launcher

    • Timeout (Seconds): 10

    • Check Use Root, leave other things untouched and save the action





  8. Repeat step 5 and choose Nova Launcher to launch instead of default one.




  9. Enable both profiles and the Tasker.




You're good to go. Your default launcher will be activated for work time and Nova Launcher will activate during home or leisure activity.



Note that you can change the timings, or the default profile as well. E.g. If you don't want to limit the answer with timings or your timings are not strict but irregular than you may try a profile like State → Net State → Wifi Connected → details of Wifi.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...