{"id":9382,"date":"2014-05-07T12:01:47","date_gmt":"2014-05-07T20:01:47","guid":{"rendered":"http:\/\/www.perivision.net\/wordpress\/?p=9382"},"modified":"2014-06-12T10:16:49","modified_gmt":"2014-06-12T18:16:49","slug":"how-to-toggle-between-2-or-more-apps-in-android-using-tasker-geared-for-pebble-users","status":"publish","type":"post","link":"https:\/\/www.perivision.net\/wordpress\/2014\/05\/how-to-toggle-between-2-or-more-apps-in-android-using-tasker-geared-for-pebble-users\/","title":{"rendered":"How to toggle between 2 or more apps in Android using Tasker geared for Pebble users."},"content":{"rendered":"<p>I have a Samsung III.\u00a0 That means I cannot use a very simple but useful command that lets me load the last app used but not the current app.\u00a0 However, there is a way around this. In fact, you can do something even cooler if you are willing to put in the time.\u00a0 For this post I&#8217;m going to assume you already know how to use Tasker, so I&#8217;m going to jump right in.\u00a0 If you do not know Tasker and Pebble Tasker, go through this tutorial first<a href=\"https:\/\/www.perivision.net\/wordpress\/2013\/12\/how-to-get-the-news-on-your-pebble-watch-my-first-little-hack\/\"> getting the news on the pebble.<\/a><\/p>\n<p>First, lets set up a simple toggle in Tasker.\u00a0 Have a look at the screenshot below&#8230;<\/p>\n<p><a href=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.25.27.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9383\" src=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.25.27-168x300.png\" alt=\"2014-05-07 19.25.27\" width=\"168\" height=\"300\" srcset=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.25.27-168x300.png 168w, https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.25.27-576x1024.png 576w, https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.25.27.png 720w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/a>\u00a0 <a href=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.28.32.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9384\" src=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.28.32-168x300.png\" alt=\"2014-05-07 19.28.32\" width=\"168\" height=\"300\" srcset=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.28.32-168x300.png 168w, https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.28.32-576x1024.png 576w, https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.28.32.png 720w\" sizes=\"auto, (max-width: 168px) 100vw, 168px\" \/><\/a><\/p>\n<p>The key to making this work is the Tasker reserved Variable %WIN.\u00a0 This is the name of the window of the app in question.\u00a0 If you are not sure what the name of the application is, you can create a simple pop up with %WIN as the text.<\/p>\n<p>Pretty simple isnt it?\u00a0\u00a0 Basically what we are doing is setting up an IF statement that look at the name of the current app.\u00a0 If that name is a match, then load another app.\u00a0 In this case, if the current window is Waze, then load Torque.\u00a0 IF %WIN==&#8217;Waze&#8217; (then) Load App &#8216;Torque&#8217;.<\/p>\n<p>Then next time this task is called the reverse will be true, IF %WIN==&#8217;Torque&#8217; (then) Load App &#8216;Waze&#8217;.\u00a0 If neither app is running then nothing happens.<\/p>\n<p>You can extend this further by simply adding more apps.\u00a0 You can have as many as you like.\u00a0 You can use either &#8220;IF&#8221; or &#8220;Else&#8221; depending on your coding style.<\/p>\n<p>Now simple create a pebbletasker button that calls this task and you can toggle all day long form your watch.\u00a0 The great use case for me is when I&#8217;m driving.\u00a0 Although I am having issue with Torque starting in the Dashboard screen when I click over.\u00a0 Hopefully there will be a way to solve this bug in the future.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"SPOSTARBUST-Related-Posts\"><H3>Related Posts<\/H3><ul class=\"entry-meta\"><li class=\"SPOSTARBUST-Related-Post\"><a title=\"How to fix minor rim scrape on a Tesla 3 and the 3-6-9 rule\" href=\"https:\/\/www.perivision.net\/wordpress\/2018\/05\/how-to-fix-minor-rim-scrape-on-a-tesla-3-and-the-3-6-9-rule\/\" rel=\"bookmark\">How to fix minor rim scrape on a Tesla 3 and the 3-6-9 rule<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"View 2D Android apps in VR with PhoneCast &#8211; S8 only\" href=\"https:\/\/www.perivision.net\/wordpress\/2017\/09\/view-2d-android-apps-in-vr-with-phonecast-s8-only\/\" rel=\"bookmark\">View 2D Android apps in VR with PhoneCast &#8211; S8 only<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Now thieves are use Amps to steal your car. Now you need a Faraday cage for your key fob\" href=\"https:\/\/www.perivision.net\/wordpress\/2015\/04\/now-thieves-are-use-amps-to-steal-your-car-now-you-need-a-faraday-cage-for-your-key-fob\/\" rel=\"bookmark\">Now thieves are use Amps to steal your car. Now you need a Faraday cage for your key fob<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"How to put your iphone in developer mode to install Pebble apps\" href=\"https:\/\/www.perivision.net\/wordpress\/2014\/10\/how-to-put-your-iphone-in-developer-mode-to-install-pebble-apps\/\" rel=\"bookmark\">How to put your iphone in developer mode to install Pebble apps<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Pebble Gets A Permanent Price Cut, Plus Background Sleep And Activity Tracking\" href=\"https:\/\/www.perivision.net\/wordpress\/2014\/09\/pebble-gets-a-permanent-price-cut-plus-background-sleep-and-activity-tracking\/\" rel=\"bookmark\">Pebble Gets A Permanent Price Cut, Plus Background Sleep And Activity Tracking<\/a><\/li>\n<\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>I have a Samsung III.\u00a0 That means I cannot use a very simple but useful command that lets me load the last app used but not the current app.\u00a0 However, there is a way around this. In fact, you can do something even cooler if you are willing to put in the time.\u00a0 For this&hellip; <a class=\"read-more\" href=\"https:\/\/www.perivision.net\/wordpress\/2014\/05\/how-to-toggle-between-2-or-more-apps-in-android-using-tasker-geared-for-pebble-users\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":9383,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[83,1922,961,2066],"tags":[227,177,1641,2113,2166,2165],"class_list":["post-9382","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-andriod","category-how-to-2","category-mobile","category-pebble-2","tag-android","tag-how-to","tag-pebble","tag-tasker","tag-toggle-apps","tag-tutorial"],"jetpack_featured_media_url":"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2014\/05\/2014-05-07-19.25.27.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pjzQD-2rk","_links":{"self":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts\/9382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/comments?post=9382"}],"version-history":[{"count":2,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts\/9382\/revisions"}],"predecessor-version":[{"id":9386,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts\/9382\/revisions\/9386"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/media\/9383"}],"wp:attachment":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/media?parent=9382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/categories?post=9382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/tags?post=9382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}