Override enable screen rotate on specific apps - Samsung Galaxy Nexus

I'm running CM 10.1 and use the toggle screen rotate from the quick settings panel all the time. I prefer most apps locked in portrait, but sometimes allow them to rotate using the quick toggle.
Two apps I ALWAYS want to have rotate are the camera and gallery apps. Each app hides the notification bar so I can't enable rotate unless I enable it beforehand.
I tried Smart Rotate from Google Play and it kinda works but not really. Every time I toggle the quick setting, the Smart Rotate apps brings up a pop up. Plus, even though I lock an app portrait, the Phone, Smart Rotate allows the app to rotate 180 degrees.
Anyone else have any ideas?

I use tasker for this very thing
Sent from my Galaxy Nexus

What arguments are you using?

Application, (select all apps I want rotate to work with)
Task: Display, Display Rotation, Set ON
add EXIT TASK to Set OFF

Would you mind posting a screenshot of your task so I could see?

Here is an xml example with just YouTube, gallery, and maps enabled.
<TaskerData sr="" dvi="1" tv="1.3.3u2m">
<Profile sr="prof6" ve="2">
<cdate>1357707882006</cdate>
<clp>true</clp>
<edate>1357708015099</edate>
<id>6</id>
<mid0>15</mid0>
<mid1>16</mid1>
<App sr="con0" ve="2">
<cls0>com.android.gallery3d.app.Gallery</cls0>
<cls1>com.google.android.maps.MapsActivity</cls1>
<cls2>com.google.android.youtube.app.honeycomb.Shell$HomeActivity</cls2>
<label0>Gallery</label0>
<label1>Maps</label1>
<label2>YouTube</label2>
<pkg0>com.google.android.gallery3d</pkg0>
<pkg1>com.google.android.apps.maps</pkg1>
<pkg2>com.google.android.youtube</pkg2>
</App>
</Profile>
<Task sr="task15">
<cdate>1357707885327</cdate>
<edate>1357708015099</edate>
<id>15</id>
<Action sr="act0" ve="3">
<code>822</code>
<Int sr="arg0" val="1"/>
</Action>
</Task>
<Task sr="task16">
<cdate>1357707910652</cdate>
<edate>1357707968677</edate>
<id>16</id>
<Action sr="act0" ve="3">
<code>822</code>
<Int sr="arg0" val="0"/>
</Action>
</Task>
</TaskerData>
Click to expand...
Click to collapse
Sent from my Galaxy Nexus

Profile: Anon (6)
Application: Gallery, Maps or YouTube
Enter: Anon (15)
A1: Display Rotation [ Setn ]
Exit: Anon (16)
A1: Display Rotation [ Setff ]
Sent from my Galaxy Nexus

Thanks for your help. I downloaded tasker and was able to do what I want. I don't know about you, but the camera app lags a bunch rotating now. Do you have any issues?

thereddog said:
Thanks for your help. I downloaded tasker and was able to do what I want. I don't know about you, but the camera app lags a bunch rotating now. Do you have any issues?
Click to expand...
Click to collapse
Sorry, just now saw the reply.
I have noticed ever since 4.2.1 that the camera is really slow to rotate. Stock, custom, tried everything. It's not just a problem with tasker controlling the rotate, as I have tried even with tasker disabled.
It's a pain.
Sent from my Nexus 7 using Tapatalk HD

Related

[APP REQ] Screen Toggle on rotate face down/reverse portrait (or shake)

I am searching for an app to toggle the screen on and off when you rotate face down or turn reverse portrait (or even shake the unit possibly).
I have been using MobileMagic to do just that, but it's not completely stable and I don't use any of its other features.
I had hoped that Gyrator 2 would do it, but it only offers screen off, not screen toggle.
Any suggestions?
Bump
Or should I move this request to,
xda-developers > General discussion > Development and Hacking ?
I Would love that too, only I would like the screen to lock instead. As do you, I've been using MobileMagic for that, but it is unstable and for rotating applications I'm using FlipIt now (since it is included in Dutty's ROMs)
Search for g-trigger on xda, it as a screen on/off toggle action that you can set to a specific shaking. Hope it help.
Try this
it`s Ccalled ChangeScreen.....
http://idevelopstuff.com/WM/Fuze/changeScreen/changescreen_inst.cab

[REQUEST] Intelligent gravity rotation toggle

It's very inconvenient to use my phone when lying on bed. I sometimes switch between landscape view and portrait view but I can't turn on the g-sensor auto rotation because what is "down" in my view is actually horizontal. Are there any "intelligent" rotation toggles that can calibrate the "ideal" gravity direction and automatically rotate the screen to fit the user's view?
PS: Technically, I think the compass is also needed to perform this function.
Same here. I switched off auto rotation and can now easily use it when laying in bed.
Sent from my HTC One using xda premium
Use the rotate app from market. It's great, can force rotation if app normally doesn't too.
Prinz069 said:
Same here. I switched off auto rotation and can now easily use it when laying in bed.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
So you rotate manually when lying in bed? I think it's technically possible to make a software that rotates automatically after the user point out the ideal "down" direction.
lbell said:
So you rotate manually when lying in bed? I think it's technically possible to make a software that rotates automatically after the user point out the ideal "down" direction.
Click to expand...
Click to collapse
A solution to offset the rotation +-90degrees would be nice
pmeinert said:
A solution to offset the rotation +-90degrees would be nice
Click to expand...
Click to collapse
I've just made an app to solve it. See
http://forum.xda-developers.com/showthread.php?t=2366934

Bedside Clock and Qi

I'm loving my new Tylt Vu and wireless charging. However, when I drop the phone on the Tylt, after seeing the wireless charging notification pop up, I don't see Daydream appear until my screen times out (which I have set at 10 minutes). I would love it if Daydream would appear instantly, like it does when I plug into the USB/wall charger. I have Daydream configured to turn on for both dock mode and while charging.
Any ideas?
Sent from my SM-N900T using Tapatalk
You could use tasker to do that most likely. I use it to tell me when the phone is charging (says charging) and turns off the screen.
Yeah, I was afraid of that, I think, because Tasker seems intimidating. Or more accurately, I worry that I don't have time for the learning curve.
Sent from my SM-N900T using Tapatalk
I'm certainly not a tasker pro, but there is an app that will launch Daydream https://play.google.com/store/apps/details?id=com.brianco.daydreamlauncher and the script for it then in tasker would be fairly simple. Unfortunately, that does not work on the Note 3 for some reason. The launcher just says it is closing without doing anything.
If it is fixed, then all you do is setup a profile that looks for when plugged into a charger, and run a task which launches the daydream launcher.
Something like (export XML from Tasker) you would just import this into your tasker and it would be setup:
Code:
<TaskerData sr="" dvi="1" tv="4.2u3m">
<Profile sr="prof9" ve="2">
<cdate>1385121313954</cdate>
<edate>1387567353105</edate>
<id>9</id>
<mid0>4</mid0>
<nme>Charging</nme>
<State sr="con0">
<code>10</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Task sr="task4">
<cdate>1385121469149</cdate>
<edate>1387567042690</edate>
<id>4</id>
<nme>SpeakCharge2</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>559</code>
<Str sr="arg0" ve="3">Charging</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act1" ve="3">
<code>20</code>
<App sr="arg0">
<appClass>com.brianco.daydreamlauncher.StartDaydream</appClass>
<appPkg>com.brianco.daydreamlauncher</appPkg>
<label>Daydream</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
This actually speaks "Charging" and then loads the launcher (Which doesn't work).
I sent the dev a note to see if he knows why it won't work on the Note 3.
A programmable NFC tag should work to do this? I don't have any direct experience with them but I am going to buy some and play around with them for my own needs. Something to look into at least.

Homescreen doesn't display properly in Landscape

Anyone else have this problem? Icons don't fit on the top and bottom. I know I can fix this by adjusting the DPI but is there another way?
On all my other phones when I flip the screen the homescreen shows fine.
Sent from my E6853 using XDA Free mobile app
Ok, I think the screen operates in 4k mode, not just when you're watching photos & videos, but anytime you're in landscape.
Sent from my E6853 using XDA Free mobile app
jplempka said:
Anyone else have this problem? Icons don't fit on the top and bottom. I know I can fix this by adjusting the DPI but is there another way?
On all my other phones when I flip the screen the homescreen shows fine.
Sent from my E6853 using XDA Free mobile app
Click to expand...
Click to collapse
my homescreen doesn't rotate at all. Portrait only, does yours rotate?
My home scree also do not rotate..
Sent from my SO-03H using Tapatalk
Yeah even my home screen doesnt rotate, is that suppose to rotate?
Sony did this on purpose because when you rotate the resolution changes to 4k and icons don't display properly, You can force auto rotate with this app:
https://play.google.com/store/apps/details?id=nl.fameit.rotate&hl=en
jplempka said:
Sony did this on purpose because when you rotate the resolution changes to 4k and icons don't display properly, You can force auto rotate with this app:
https://play.google.com/store/apps/details?id=nl.fameit.rotate&hl=en
Click to expand...
Click to collapse
Let's not go again into why Sony chose to display everything but Pictures&Videos in 4K.
But you are wrong. Do the following, via adb
Code:
adb shell dumpsys window | find "3840"
For any app you will get the following output:
Code:
Requested w=2160 h=3840 mLayoutSeq=5146
Requested w=2160 h=3840 mLayoutSeq=8002
But for pictures and videos you will get the following output which indicates 4K output.
Code:
Requested w=3840 h=2160 mLayoutSeq=7964
Surface: shown=true layer=21105 alpha=1.0 rect=(0.0,1.0) 3840.0 x 2160.0
Requested w=2160 h=3840 mLayoutSeq=5146
The reason your icon etc don't look well when you force the landscape rotation is because the launcher you are using was not built for landscape. Try with a launcher that supports landscape and you will see everything fine.
gbil said:
Let's not go again into why Sony chose to display everything but Pictures&Videos in 4K.
But you are wrong. Do the following, via adb
Code:
adb shell dumpsys window | find "3840"
For any app you will get the following output:
Code:
Requested w=2160 h=3840 mLayoutSeq=5146
Requested w=2160 h=3840 mLayoutSeq=8002
But for pictures and videos you will get the following output which indicates 4K output.
Code:
Requested w=3840 h=2160 mLayoutSeq=7964
Surface: shown=true layer=21105 alpha=1.0 rect=(0.0,1.0) 3840.0 x 2160.0
Requested w=2160 h=3840 mLayoutSeq=5146
The reason your icon etc don't look well when you force the landscape rotation is because the launcher you are using was not built for landscape. Try with a launcher that supports landscape and you will see everything fine.
Click to expand...
Click to collapse
OK, thanks.

edge lighting+

Haven't seen anyone talking about the new effect for edge lighting+ in good lock, it's called eclipse! It's for notifications, with the ability to set specific colors for each app. It utilizes the ring around the camera cutout. It's a great new update!
it doesnt work properly
only for text sms
Not so good. I tested.
Then went back to AOE
gfrearick said:
Haven't seen anyone talking about the new effect for edge lighting+ in good lock, it's called eclipse! It's for notifications, with the ability to set specific colors for each app. It utilizes the ring around the camera cutout. It's a great new update!
Click to expand...
Click to collapse
It's not new....
Edge light plus also works as standalone with the ring light up option.
I uninstalled it, doesn't work with screen off.
Sent from my SM-G975U using Tapatalk
Limeybastard said:
Edge light plus also works as standalone with the ring light up option.
I uninstalled it, doesn't work with screen off.
Sent from my SM-G975U using Tapatalk
Click to expand...
Click to collapse
It does work with screen off, but only for Samsung system apps such as SMS or email, otherwise your correct
Sent from my SM-G975U using Tapatalk
Umm I'm using the eclipse effect with screen on/off and on all apps not just system ones.
stefan243546 said:
Umm I'm using the eclipse effect with screen on/off and on all apps not just system ones.
Click to expand...
Click to collapse
Yeah mine definitely works with other apps such as Instagram and snapchat, so yeah. Not sure how it doesn't work exactly lol.
Oh it does work..if you turn the screen on after you get the notification then you get the light ring with the popup notifying you, otherwise no it doesn't work with most apps with the screen off. If it works for you that way then fantastic, I just know I am not the only one that states this
Sent from my SM-G975U using Tapatalk
Something a little different
https://forum.xda-developers.com/galaxy-s10/themes/app-aodnotify-automatically-activate-t3933581/
Sent from my SM-G975F using Tapatalk
Found a workaround with Tasker + AutoNotification
Basically, Edge Lighting only works for apps that want to wake the screen up. So let's ask Tasker to do that.
Example for Messenger :
Code:
Profile: Messenger (55)
Event: AutoNotification Intercept [ Configuration:Event Behaviour: true Notification Apps: Messenger ]
State: Display State [ Is:off ]
Enter: Anon (56)
A1: Notify [ Title:FB Text:%antitle : %antext Icon:%anstatusbaricon Number:0 Permanent:off Priority:5 Repeat Alert:off LED Colour:Blue LED Rate:0 Sound File: Vibration Pattern: Category:Test Actions:(1) ]
Exit: Anon (57)
A1: Turn On [ Block Time (Check Help):500 ]
Then set AutoNotification to automatically delete any notif from Tasker with title containing "Mess" and set Edge Litghting to the color of your choice for notif with "Mess" as title (blue for instance).
When phone screen is off, you'll get a blue Edge Lighting notification saying "Mess John Doe : Blah blah blah". When you turn the screen on you'll only see the Messenger notification since the Tasker one that produced the Edge Lighting will have been deleted.
Rinse and repeat for as many apps as you want. Filter in AN for deleting Tasker notifs should look like (Mess)|(WhatsApp)|(Uber)|(etc.) with regex on.

Categories

Resources