How to determine when SCREEN_OFF_TIMEOUT has changed? - Android Software Development

Just started working with the Android SDK so forgive me for my ignorance (I did unsuccessfully Google before posting, however).
I'm trying to make my first test widget that toggles the screen time out
settings. Is there a way for the widget to be notified when
Settings.System.SCREEN_OFF_TIMEOUT has been changed? I would like to
know this so I can update the widget graphic accordingly -- when they update the setting via toggling the widget, or if they go in to the Settings menu and change it there.

Related

Now Tile Questions

I am sure that I am missing something with the Now live tile:
1. How do I get it to display the current weather on the live tile on the home screen?
2. How do I get it to update itself without me having to manually press the update spot?
The 'Now' app is useful, but I do not understand the functionality if when I press look at the 'Live Tile' it is not 'Now' but a random gif and then when I do press it, the weather is not 'Now' but whenever I last manually updated it.
I know that this is a rookie question, but am I overlooking something obvious?
The Weather Channel App takes a while for the first live update, but after it starts u will notice it change often.
The Now app from Samsung, Im not sure if it auto updates or not.
Try weatherbug - free from the app store - works better than weather.com or Now

What Weather Widget is this?

http://www.miui.us/forums/content.php?27-THEMES-and-More-THEMES-MIUI
MIUI Weather. Can be found in the Android Apps and Games section here.
They're split by state, so download accordingly. When setting location, at least this was how it was going before, you had to disable the GPS bit in the settings and manually add your location.

How to Access System UI Tuner in EMUI 5.0! (no root)

By default you are unable to access the system UI tuner in emui. With this app (ALL CREDIT TO LEEDROID) you are able to add various shortcuts to your quick settings tiles. One of these is UI tuner, which will bring you to the settings unlike holding the settings cog.
Note that this method is sometimes rather buggy when getting to the menu, and it works best if your settings application is cleared from recent apps.
Just download the app, hit edit in your quick settings, drag the UI tuner to your quick settings and you're set to go.
Don't give up if it won't work on the first press! Clear your recent apps and give it another shot.
App link: https://play.google.com/store/apps/details?id=com.leedroid.shortcutter
I discovered this a while back on the Mate 9, but unfortunately most of the functions don't work so there's really no point to it.
I tested this, but if I'm right, not many of those new settings in System UI tuner work in Honor 8. I did not get Power notification controls to do anything new (no new settings appeared in app notification settings). Similarly turning on Do not disturb mode shortcut seemed to once flash the options in the volume popup, but after that... nothing. The only thing I managed to get to work was to remove icons from status bar.
Or did I do something wrong?
b1tt1 said:
I tested this, but if I'm right, not many of those new settings in System UI tuner work in Honor 8. I did not get Power notification controls to do anything new (no new settings appeared in app notification settings). Similarly turning on Do not disturb mode shortcut seemed to once flash the options in the volume popup, but after that... nothing. The only thing I managed to get to work was to remove icons from status bar.
Or did I do something wrong?
Click to expand...
Click to collapse
No, you did it correctly. Some of the settings may not work properly due to the EMUI skin. The issues you listed are probably why honor had it hidden in the first place. But there are still some useful settings in there.
There is simpler method to do that https://www.youtube.com/watch?v=gm8PEYKrjrw
However SystemUI is very limited, nothing useful to do

Question- help restore weather widget on lockscreen on Thor S7 style 1.5

Hey everybody.
Does anyone know how can i restore weather widget on lockscreen on Thor S7 style 1.5?
Thanks in advanced for any helpo - answer...
You haven't given enough information to help us out, leaving us to make nothing more than a WAG. More details please, like what launcher you're using and whether you've disabled any of the apps within the device.
Ok i did a fresh install of Thor S7 style version 1.5 and when the device boot completle after i set up my wifi enter my location and on my home page with the clock i have weather icon
when i go to unlock the screen i see only the clock the phone dialer down on the left and the camera down right corner no weather on lock screen i search on settings and here it comes nothing
i don't know how else i can help you to give you to understand
No, your latest post was helpful. Unfortunately, while I also have Thor on my S4, I can't activate the weather either. The only option in Settings > Lock screen and security under weather is to change settings on the weather widget itself. You can't turn the widget on in the lock screen.
i stay up very late last night and i did some experiment i download the all in one addon for thor s7 v1.2
during the instalattion it have a tick to select the weather widget on lockscreen.
Give it a try and let me know if it works for you
It probably would work and I'll make sure to download the addon in case the file suddenly disappears. Glad you figured it out.
Strephon Alkhalikoi said:
It probably would work and I'll make sure to download the addon in case the file suddenly disappears. Glad you figured it out.
Click to expand...
Click to collapse
I'm glad i can help including my self since i was having this issue and i wanna see the weather
on my lock screen

Does your weather app update regularly?

Mine doesn't. I have to manually update it even though I have the weather in home screen. This is stupid. It's there a way to update like hourly?
kennyk09 said:
Mine doesn't. I have to manually update it even though I have the washer in home screen. This is stupid. It's there a way to update like hourly?
Click to expand...
Click to collapse
Yep
How?
How?
Think mine does as well.
There are times I'm not paying attention to the weather and the temperature # will change on the widget without me opening the app and manually refreshing.
Have seen it happen on at least 2 occasions that I can recall. Don't really use the weather app that much in the first place
My weather widget doesn't update. I've heard it might be a bizarre issue where it doesn't update in the EU region. Possibly a GDPR confirmation missed at one point. I didn't want to try this method for my reasons, but you could try setting your phone region to India, for instance, creating the widget and letting it detect your location. If that succeeds, you can revert to your region and the thing should then work, in theory. Let me know if you succeed.
I not working ,you can set up automatic update at night. Between 23 and 7!! Who need update when sleep.
I use Google widget At a glance and its working without any problem. Everyone have it in widget - Google
Only option I have is overnight crap. The weather is so unstable in this part of the world. I need to be able to update at least hourly, automatically of course.
Even if it does update during the night, at 6pm your widget will still be showing weather from 7am
I tried "simple weather & clock" by difer, which almost made it. I realized if you use 3rd party weather app, the time on notification bar stays on, in home screen. Which is annoying because I only want 1 big time shown on weather app that also allow me to access timer and alarm. Who needs 2 of same time shown on home screen? I rather have defect stock weather app, looks neater at least..
I also have the clock always in the status bar. Except for when a notification arrives, or right after unlocking it. It's connected to the default launcher and I'm using the Poco Launcher. I need my app drawer
If you don't want the clock in the status bar, you could use the MIUI clock only widget, and then just a separate widget for the forecast.

Categories

Resources