Saturday, November 3, 2012

Update to "Solat Malaysia"

Alhamdullillah finally I have done it. I have finally took enough time to upgrade the "Solat Malaysia" app to save the solat schedule for a whole month from e-solat.gov.my. So now it would update to the current day schedule even though the site is currently down (which it comes down a lot, and people start blaming the app for not updating). To be fair, it could be that the app was "part" of the reason the website kept on going down considering that there was thousands of "Solat Malaysia" users at least updating their app every single day (and every single solat schedule app that uses the same update model). It kept on going down so many times that I even though about proposing to JAKIM to let me have a go at properly setting up their server to cache, balance and handle such traffic for free. But never got round to that and finally just upgraded my own software to play nice instead.

Apart from the all important downloading the whole month schedule update, the azan works properly now too. At least properly on my experia active. Before this it relied on a running service to check when it was time to sound the azan, which usually the service gets killed and never start again, causing the azan to not happen. I've finally fixed it to properly set and use an alarm manager and thus there is no background service which might be killed to rely on. Truth be told I have no idea what I was thinking early on when I used the service approach. It is quite silly.

Other things which have improved a bit (but just a bit though) is I spent a little time on streamlining the process to change area and a bit of cosmetic touch up. Finally I've actually aligned the text in the widget.

And as always, the most important part for me from "Solat Malaysia" is learning how to program for the android and it's all still available for the public at https://github.com/abdza/solatmalaysia. Some of it like I said is a little bit embarrassing (like why on earth did I use a service for the azan) but it's also encouraging that I am actually improving my android coding and understanding. Finally I can put this to rest for a while and concentrate on my other projects. Thank you all for the support you gave even when the software really sucked and even I couldn't recommend it to my friends. But now I finally can recommend it to my friends, so Shazman, if you're reading this, install it NOW... :P

2 comments:

kamarul said...
This comment has been removed by the author.
kamarul said...

Salam Abdullah,

Is it possible to create a server where it cache info from Jakim. You apps then retrieve from that server, similar to mirror server?

Haiya ala Solah