Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[WIDGET][2.1+] XKCD Now Home Screen Widget

OP Shef_

4th March 2014, 03:26 AM   |  #1  
OP Junior Member
Thanks Meter: 25
 
14 posts
Join Date:Joined: Mar 2014
More
Hi,

So this is my first time posting an app/widget to the forums. After seeing xkcd.com/now, I thought it deserved to be made into a widget that doesn't require internet connection, so I used this project to learn how to make android widgets. Turns out it's simpler than I thought.

To read this widget you have to find your location on the inside Earth map, and compare its location to the 24 hour clock on the outside.

Here is a more in depth explanation.

All of xkcd.com is creative commons so there shouldn't be a problem with distributing this app.

Here is the play store URL: https://play.google.com/store/apps/d....xkcdnowwidget

In the attached screenshot you can see how it works. I'm in the US West Coast, so it gives you a demonstration of how to read the clock.

Enjoy
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-02-28-14-46-54.jpg
Views:	1754
Size:	98.0 KB
ID:	2612004  
Last edited by Shef_; 4th March 2014 at 03:45 AM. Reason: Fixed a link
The Following 18 Users Say Thank You to Shef_ For This Useful Post: [ View ]
9th March 2014, 08:00 PM   |  #2  
OP Junior Member
Thanks Meter: 25
 
14 posts
Join Date:Joined: Mar 2014
More
Talking
So this somehow made the front page of XDA, I'm honoured, but I'd like to remind everyone that this is just an adaptation of xkcd.com/now , and doesn't account for DST. It's funny that it made the front page on the day that DST takes effect, though.

I'll try to make an update that corrects it partially.
9th March 2014, 08:35 PM   |  #3  
Member
Flag Skee
Thanks Meter: 10
 
59 posts
Join Date:Joined: Oct 2010
More
Quote:
Originally Posted by Shef_

So this somehow made the front page of XDA, I'm honoured, but I'd like to remind everyone that this is just an adaptation of xkcd.com/now , and doesn't account for DST. It's funny that it made the front page on the day that DST takes effect, though.

I'll try to make an update that corrects it partially.

Don't do timezone adaptions.

Europe goes into DST in 3 weeks.

See https://www.youtube.com/watch?v=-5wpm-gesOY
The Following User Says Thank You to Mahalio For This Useful Post: [ View ]
9th March 2014, 08:38 PM   |  #4  
OP Junior Member
Thanks Meter: 25
 
14 posts
Join Date:Joined: Mar 2014
More
Quote:
Originally Posted by Mahalio

Don't do timezone adaptions.

Europe goes into DST in 3 weeks.

See https://www.youtube.com/watch?v=-5wpm-gesOY

I'm planning to have a checkbox to enable/disable DST. If it's enabled the whole map rotates 15 degrees. If it's disabled it stays normal.
The Following User Says Thank You to Shef_ For This Useful Post: [ View ]
9th March 2014, 10:39 PM   |  #5  
benkxda's Avatar
Recognized Contributor
Thanks Meter: 2,114
 
917 posts
Join Date:Joined: Jan 2012
Quote:
Originally Posted by Shef_

I'm planning to have a checkbox to enable/disable DST. If it's enabled the whole map rotates 15 degrees. If it's disabled it stays normal.

Very useful to stay in contact with friends from XDA, Google+ and other networks. Really handy app, sir. But please do me a favor and change the font into something "normal" . And the option for enabling/disabling DST is a good idea, as well. Grand idea!
9th March 2014, 10:52 PM   |  #6  
r1c47's Avatar
Member
Thanks Meter: 7
 
66 posts
Join Date:Joined: Jul 2011
Question
Why is it 26MB?
10th March 2014, 12:45 AM   |  #7  
OP Junior Member
Thanks Meter: 25
 
14 posts
Join Date:Joined: Mar 2014
More
Quote:
Originally Posted by r1c47

Why is it 26MB?

It's the way Randall Muroe first coded it. it has to contain 96 pictures and picks one every 15. Kind of a bummer. Here's the source if you're suspicious that it does more than it claims: https://github.com/Shef-/XKCDNowWidget
The Following 3 Users Say Thank You to Shef_ For This Useful Post: [ View ]
10th March 2014, 12:54 AM   |  #8  
OP Junior Member
Thanks Meter: 25
 
14 posts
Join Date:Joined: Mar 2014
More
Smile Added Live Wallpaper and DST support
I added a live wallpaper and the option for DST. It's all part of the same app so that you only need to download the 26mb file once and all resources are shared.
The Following User Says Thank You to Shef_ For This Useful Post: [ View ]
10th March 2014, 06:37 AM   |  #9  
Spincervino's Avatar
Member
Thanks Meter: 69
 
72 posts
Join Date:Joined: Mar 2013
Nice Widget, but I have a suggestion:
For shrinking apk size you just need to compress .png files better
Using "PNGGauntlet" I just got the "xkdc01.png" from 272,44 KB to 195,95.
That's 72% of original image size, without any loss of quality!
That, would be taking down the app weight to about 20mb if I did the maths correctly.
And it's lossless: its just better algorithms re-encoding the png files and removing extra information unneeded for the image.
You can use any program you like, i used PNGGauntlet just because it's so easy to use, and works good enough for me!
A little downside: re-encoding takes time, and in olds computer a lot of time, but in my opinion, for something like this, its worth it.
Bye!
Attached Thumbnails
Click image for larger version

Name:	xkcd01.png
Views:	214
Size:	195.9 KB
ID:	2622715  
The Following 2 Users Say Thank You to Spincervino For This Useful Post: [ View ]
10th March 2014, 06:45 AM   |  #10  
OP Junior Member
Thanks Meter: 25
 
14 posts
Join Date:Joined: Mar 2014
More
Quote:
Originally Posted by Spincervino

Nice Widget, but I have a suggestion:
For shrinking apk size you just need to compress .png files better
Using "PNGGauntlet" I just got the "xkdc01.png" from 272,44 KB to 195,95.
That's 72% of original image size, without any loss of quality!
That, would be taking down the app weight to about 20mb if I did the maths correctly.
And it's lossless: its just better algorithms re-encoding the png files and removing extra information unneeded for the image.
You can use any program you like, i used PNGGauntlet just because it's so easy to use, and works good enough for me!
A little downside: re-encoding takes time, and in olds computer a lot of time, but in my opinion, for something like this, its worth it.
Bye!

I'll definitely look into it, thanks for telling me

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes