I'm sick of having to turn on auto rotate every time I use Google Maps for navigation. I don't know why it's not just automatically landscape like apps such as Youtube.
Is there a way I can have it turn on auto rotate JUST for google maps and not for any other app.
Is there an app that would do this or somehow program it in Tasker?
Answer
This solution requires Tasker installed and enabled. Tested on Android 4.2.1, 4.4.2, 5.0.2 and 5.1.1.
- Create a profile with Application → Maps
- Create an action under Task of the above profile as
+
→ Display → Display AutoRotate and Set it to On. - Enable Profile and Tasker.
Open Maps and orient your device in landscape mode, Maps will follow you. Close the Maps and device will fall back to Portrait.
Enjoy!
OR
Edit start: 06/06/2015
There is a way you can force the system to go into Landscape mode by changing a value in settings.db
. (Tested on Android 4.2.1, root required only under this edit.)
- Create a profile with Application → Maps.
Create an action under Task of the above profile as
+
→ Code → Run Shell, and enter the following details:- Command:
settings put system user_rotation 1
- Check Use Root.
- Command:
- Create another profile with inverse of Application → Maps.
Create an action under Task of the above profile as
+
→ Code → Run Shell, and enter the following details:- Command:
settings put system user_rotation 0
- Check Use Root.
- Command:
- Enable both Profiles and Tasker.
The Maps will now automatically go into Landscape mode irrespective of manual orientation of your device. Once you close it the device will come back to Portrait mode. (Note that OP has Auto-rotation feature off so it should work.)
This edit is meant for users like me who on slow devices have to wait for the app to follow their orientation. :)
Enjoy!
OR
The shortcoming in the last method is that on some devices the app will first open in Portrait mode and then will force shift into Landscape mode. However, the app can be directly launched into Landscape mode by using an app shortcut. Tasker allows it and we'll use it.
- Go to your default launcher → Widgets and choose Task Shortcut.
- Select New task → name it.
Create an action as
+
→ Code → Run Shell, and enter the following details:- Command:
settings put system user_rotation 1
- Check Use Root.
- Command:
- Create another action as
+
→ App → Launch App → select Maps. - To change th icon of the shortcut, tap 3x3 square icon (at the bottom of Task Shortcut window) and choose the icon.
- You'll now see a shortcut with icon you selected in step 4 and name chosen in step 2.
- Create a profile in Tasker with inverse of Application → Maps.
Create an action under Task of the above profile as
+
→ Code → Run Shell, and enter the following details:- Command:
settings put system user_rotation 0
- Check Use Root.
- Command:
- Enable both Profiles and Tasker.
Now enjoy the forced auto-mode!
Edit closed: 06/06/2015
- Launch Tasker. (Note that once you're done changing something in Tasker, tap Back key once. Tasker will change/close the active window and would save the settings.)
Under PROFILES tab tap
+
→ Application → choose Maps → New Task→ name it something and tap right icon.Some Android versions might ask you to enable Tasker's accessibility service. Do it by following the instructions there and come back to Tasker.
This step would create a profile that will be triggered whenever Maps is launched by the user.
We're now under the named task (inside TASKS tab). Tap
+
→ Display → Display AutoRotate → chooseOn
below Set.We're creating an action here which will be executed once the profile is triggered.
- Come back to main screen of the Tasker and you'll see a profile with Maps app name and marked as On.
- Minimize the Tasker and you'll see its icon in the Notification bar. It will say
No active profile
. The message will change once you launch Maps. - Well, launch Maps and see the magic. You orient your device and Maps will do the same. You close the Maps and device will come back to Portrait Mode.
- You can always stop this behavior by disabling or deleting the profile in Tasker. You can also hide Tasker's notification icon through its settings.
Enjoy Maps now!
No comments:
Post a Comment