[Q] AppWidget refresh - Android Software Development

Hi,
I know that an appwidget cannot refresh it with an interval minor of 30 minutes.
But in internet I have read something about a workaround using a system timer.
Someone know this workaround? Or someone know how can I do to set a refresh rate minor?
I'm developing a kind of clock. There are many clock widget in the market, and I think that there is a solution otherwise this kind of widget would not exist because they need a refresh rate of at least 1 minute.
Thanks

There's accuweather clock and calendar clocks Widgets! Maybe u can rip them apart and find the codes?
Sent from my GT-I5800 using Tapatalk

Several solutions call alarm service with broadcast to your widget or your own service to refresh the remote views with appwidgetmanager.
Sent from my Nexus One using XDA App

Related

GS2's Accuweather Widget

Two questions about the GS2's Accuweather Widget.
First, it doesn't seem to update the weather without me hitting the update sync, it also doesn't update locations like Beautiful Widgets does.
Second, I'm also using Launcher Pro, but when I try and resize the Accuweather Widget, the blue color back ground doesn't fit.
So anyone know how to resize in LP?
And get the thing to update the weather and locations?
Thanks
bothfly said:
Two questions about the GS2's Accuweather Widget.
First, it doesn't seem to update the weather without me hitting the update sync, it also doesn't update locations like Beautiful Widgets does.
Second, I'm also using Launcher Pro, but when I try and resize the Accuweather Widget, the blue color back ground doesn't fit.
So anyone know how to resize in LP?
And get the thing to update the weather and locations?
Thanks
Click to expand...
Click to collapse
Go launcher, launcher pro and adw fail to resize stock widgets correcty.... You can see that in this video too
http://www.youtube.com/watch?v=uA2wSVzi3Gk
Ok, thought so on LP.
What about the updating of the Accuweather widget and locations?
I'm using the AccuWeather Wideget, and I found that disabling the "Enable current location" on AccuWeather causing the high power consumption service "Wifi Sharing Service" disappear from Battery Status list, it used to take 30-40% of my GS2 battery.
harrists said:
I'm using the AccuWeather Wideget, and I found that disabling the "Enable current location" on AccuWeather causing the high power consumption service "Wifi Sharing Service" disappear from Battery Status list, it used to take 30-40% of my GS2 battery.
Click to expand...
Click to collapse
I'll try this now. If it works, you would have solved a problem that has been bugging me since May!
harrists said:
I'm using the AccuWeather Wideget, and I found that disabling the "Enable current location" on AccuWeather causing the high power consumption service "Wifi Sharing Service" disappear from Battery Status list, it used to take 30-40% of my GS2 battery.
Click to expand...
Click to collapse
Well I've been running Launcher Pro and went back to TW4 today, I had the Accuweather widget running all day with the check mark on Enable Current Location and I have to say my battery life was much better than running Launcher Pro. I didn't use the phone that much today, sat on the desk at home, but push email from K9 was running all day a few text messages ect and for at least 3 hours it showed 100%, right now its at 95%. Thats with WiFi Bluetooth and Sync ON.
When I'm on LP I use Beautiful Widgets, I like how that widget updates your location and weather, but maybe thats whats draining my battery faster than Accuweather.
But exactly what does Enable Current Location do in Accuweather? It doesn't detect my Current location thats for sure.
harrists said:
I'm using the AccuWeather Wideget, and I found that disabling the "Enable current location" on AccuWeather causing the high power consumption service "Wifi Sharing Service" disappear from Battery Status list, it used to take 30-40% of my GS2 battery.
Click to expand...
Click to collapse
Please also disable the following functions beside AccuWeather Enable Current Location:
Voice Command & Voice Talk (preloaded on GS2)
Uncheck Settings -> Use location
bothfly said:
Well I've been running Launcher Pro and went back to TW4 today, I had the Accuweather widget running all day with the check mark on Enable Current Location and I have to say my battery life was much better than running Launcher Pro. I didn't use the phone that much today, sat on the desk at home, but push email from K9 was running all day a few text messages ect and for at least 3 hours it showed 100%, right now its at 95%. Thats with WiFi Bluetooth and Sync ON.
When I'm on LP I use Beautiful Widgets, I like how that widget updates your location and weather, but maybe thats whats draining my battery faster than Accuweather.
But exactly what does Enable Current Location do in Accuweather? It doesn't detect my Current location thats for sure.
Click to expand...
Click to collapse
As my understanding, the Accuweather will keep detecting your location in certain interval to make sure it reporting the weather on your current city and display on the widget. When you have your WIFI On, and you have "Use wireless networks" checked in "Location and security", it will wake up the "Wireless Sharing" service and Accuweather or Voice Command / Voice Talk will use that "Wireless Sharing" service to keep detecting your location, that's why most of the time you see that service drain your battery for 20%-40% daily. Maybe I'm wrong but proved on my phone this method really work.
Sleepycat3 said:
I'll try this now. If it works, you would have solved a problem that has been bugging me since May!
Click to expand...
Click to collapse
Thanks Sleepycat, please tell us the result! Hopefully the solution can temporary fix on every GS2 phones' battery problem before Samsung releasing the new firmware.
I think I might have figured out the Enable Current Location feature, it looks like it uses the GPS. Now I'm not sure if it updates on its own like Beautiful Widgets, which btw doesn't use the GPS since I always have it off.
harrists said:
Please also disable the following functions beside AccuWeather Enable Current Location:
Voice Command & Voice Talk (preloaded on GS2)
Uncheck Settings -> Use location
Click to expand...
Click to collapse
Tried this and WiFi sharing still appears. So your fix doesn't work for me.
Does Accuweather have live weather wallpapers as in go weather.
rishap.shah said:
Does Accuweather have live weather wallpapers as in go weather.
Click to expand...
Click to collapse
I don't they do. However, there are two stock live wallpapers that have live weather. I'm using the windmill one currently.
But this Live wallpaper is not in Cognition roms
I am using Blue Skies which is awesome, it just need that its dev link it to weather...
Theres an auto refresh option that 's turned off by default
Sent from my GT-I9100 using XDA App
How do I use them and will they show me the wallpaper with updated current weather info
Sent from my GT-I9100 using XDA App
leeboy22001 said:
Theres an auto refresh option that 's turned off by default
Click to expand...
Click to collapse
How do u activate it and does it accept the weather info from accuweather and changes accordingly
does accuweather live wallpaper really work with weather update plz let me knw coz mine is not working on GS
My live weather wallpaper is also not updating/showing changed weather now. Once or twice it did, and should also show day/night but now it just stays at its current setting.
rishap.shah said:
How do u activate it and does it accept the weather info from accuweather and changes accordingly
Click to expand...
Click to collapse
Click on the widget and change the setting on auto refresh to what you want.
Mine works fine.

[Q] Asus Weather Widget - Tap to Open Forecast App

is there a way to open another app when you tap on the standard asus weather widget?
i tried using tasker but couldnt find a way, any other apps that can do this?
i want ironically to open the accuweather honeycomb app just by tapping on the asus weather widget
this would be great. tapping it to open the weeks forecast.
i stopped using the widget because i noticed that many times when id come back to my home page, the numbers (say 89 deg) was cut off. it was weird, but half og the numbers would end up "cut off" on the screen
I have the same problem, sometimes it's cut in half. But the weirdest thing is: Since the last update the temperature is wrong, about 10 C.
Just to chime in...
I also have the "cut in half" issue often. On top of that I don't get the temp updated on schedule. I set it to every hour and it will randomly update but not every hour. It may not be random, but I haven't spent enough time to determine the pattern.
gunswick said:
..., any other apps that can do this?
Click to expand...
Click to collapse
My Samsung Galaxy S2 has such a widget, which opens the Accu Weather website, when being tapped on.
Search the market place, there's a free Accu Weather widget for Honeycomb with the same functionality, though the design isn't that nice looking for my taste.
jayson269 said:
I also have the "cut in half" issue often.
Click to expand...
Click to collapse
It seems to be a bug in the widget, because the system logs say, the Accu Weather servers are unreachable. The widget of my SGS2 always reaches the same servers.
turbulent28 said:
this would be great. tapping it to open the weeks forecast.
i stopped using the widget because i noticed that many times when id come back to my home page, the numbers (say 89 deg) was cut off. it was weird, but half og the numbers would end up "cut off" on the screen
Click to expand...
Click to collapse
I used to have that, but since using ADW EX Launcher it's a thing of the past. It's almost as if the 'transparent' box which determines the size of the widget somehow becomes smaller so you can get the clean cut on the numbers.
With the ADW EX launcher, you can make the transparent box which controls the overall size of the widget a little bit bigger so you don't get the problem.
Paradaz said:
I used to have that, but since using ADW EX Launcher it's a thing of the past.
Click to expand...
Click to collapse
In my case the problem with the cut off numbers also didn't happen again ... don't know why. I don't use a different launcher, only a new keyboard. I use the Hackers Keyboard, because it has cursor keys, which come in handy, when answering forum posts
gunswick said:
is there a way to open another app when you tap on the standard asus weather widget?
i tried using tasker but couldnt find a way, any other apps that can do this?
i want ironically to open the accuweather honeycomb app just by tapping on the asus weather widget
Click to expand...
Click to collapse
Download "The Weather Channel" app. You can place a widget on one of your screen, tap on the widget to open up the full weather app. I have the said app and works well. Just that the widget isn't as fancy as fancy as Asus' weather app.
hoang51 said:
Download "The Weather Channel" app.
Click to expand...
Click to collapse
Call me paranoid, but I would NEVER install a weather app, that needs the permission to send SMS and make phone calls. Ok, on the TF that's not a problem, but it makes me wonder, what info this app is trying to spy out ... read the details HERE.
I would stay away from this app.

Lock screen weather

I am wondering if someone might be able to answer this. I am trying to get access to the in the lockscreen weather but Verizon has removed the setting to be able to turn this on. Could someone possibly use an app like shortcut master or use Nova launcher and add the activities widget and post what the activities name is to be able to get to the lockscreen weather settings.
It would be something like com.samsung.android.settings.LockScreenWeather or something along those lines.
Sent from my SM-G955U using Tapatalk

Screen on Time Widget?

Does anyone know of a mod or app that displays a live reading of screen on time on a homescreen widget? The best I've come up with so far is a shortcut to the battery usage screen. Anyone know of a more direct way?
I do not know if it will help you. But I've seen this app: which supports this otrher app and you can put a widget with the time and the time on screen.
somereta said:
I do not know if it will help you. But I've seen this app: which supports this otrher app and you can put a widget with the time and the time on screen.
Click to expand...
Click to collapse
That's interesting. I already use GSAM as most of us probably do. I'll give that a try, thanks!
You can always create your own widget using KLWP app, it is pretty easy and the possibilities are endless
nowaar said:
You can always create your own widget using KLWP app, it is pretty easy and the possibilities are endless
Click to expand...
Click to collapse
I'm trying this out now. Sort of like Zooper in a lot of ways. Unless there is a formula to show a live reading of the current screen-on-time in a widget, it's not going to really do what I want. I have been able to set it so if you tap the time or a custom icon it'll go to the usageactivity screen, but a live reading of SoT seems to be elusive.
I could use a custom string to show live data, like system info, but I am not finding what that string would be to show that specific piece of data.

dual clock and +1 added to numbers on some received calls

I have recently switched from HTC 10 to S10+ on ATT.
I have so far two major concerns:
- I can't find automatic dual time traveling clock on S10+ or weather clock widget with dual time traveling clock like HTC offers, where the phone displays Home and current time and weather respectively
- the phone adds +1 to numbers of some received international calls. It is impossible to modify the number in Recents and call back
I would appreciate input on that.
If you go to clock in app menu, is there not four options at the bottom, alarm, world clock, stopwatch & timer, world clock has two different time zones, you could do a dual clock widget, not sure about weather tbh...
Sent from my Galaxy S10+ using XDA Labs
Thank you, but this works, if you want to find out what time is now at certain location. I am looking for an automated actual location picker for the current location and Home time simultaneously. The widget is supposed to tell you what time and weather is a location you land as well as at your Home. It is nicely done on HTC phones.
maratech said:
Thank you, but this works, if you want to find out what time is now at certain location. I am looking for an automated actual location picker for the current location and Home time simultaneously. The widget is supposed to tell you what time and weather is a location you land as well as at your Home. It is nicely done on HTC phones.
Click to expand...
Click to collapse
You may have to use two widgets of the same app to achieve your goal. One widget from the same app use current time zone and the 2nd widget of the same app use another time zone.
Sent from my EVR-L29 using Tapatalk

Categories

Resources