Skip to main content

Android development

After putting it off for so long, I finally went all out and did it. But it took a far longer time than expected but at least I have taken the precious first few steps. I'm talking about developing for the android platform. I've bought my desire last year in december. But for almost half a year all I did was play around with other software on it, I didn't even start to do the very reason I bought it in the first place, develop my own software on it, until recently. After seeing how long I've procrastinated, I decided to get serious and even bought a few books off amazon and the one which I have been reading which got me over the first hurdle was "Hello, Android". It is a pretty nice walkthrough on how to write your first android software by showing you the steps to write a sudoku game. And a few other small apps to show how to implement other features. I highly recommend it if you're looking for good a beginner android development book.

So the first android app I've written is about something which is quite dear to me, solat. I've wanted to write an application for referencing http://www.e-solat.gov.my (which I use on my blog to display solat times) even before I've got my desire. But once I've got it, I found that Syakhir Jaafar already beat me to it by releasing MySolat. So I've been using that one until I've finally got the drive to write my own. The title of my application is "Solat Malaysia", because, it shows solat times in Malaysia (Yeah, I'm really creative that way.. ). I am writing it more for my own use and practice in writing android app more than anything, so I'm releasing it as an open source software where you can get the code here. So if you are a muslim and using an android phone, please try to download it from the market and maybe give some feedback. I have a few ideas on what feature to add next and all, but some feedback from other users would be great too. But if you are not a muslim (as in you don't have any use for my app), you can still learn from the codes or maybe even advice me on how I can improve mine, check out my github. Any kind of input would be greatly appreciated. My development currently is mostly done in eclipse (yeah, haven't got raw yet.. :P).

Programming for the android is certainly different than what I usually do (web apps mostly) but I can relate to the mvc style with declaring the inteface in the xml resources and the logic in the java codes and all. I guess the main hurdle was actually just getting a feel on how everything glues together (and there is a lot of things, the resources - (strings, menus, layout), the android manifest, the codes, the intents etc). But once you've grokked it, it feels quite natural.

Whichever way it is, the book helped a lot. Expect me to continue to improve the "Solat Malaysia" app (it is very rough right now) and hopefully I'll write even more software for the android platform in the near future. Stay tuned.

Comments

K' said…
Bring it on.
Maira Giftmine said…
Kenapa tiada azan masa masuk waktu solat ?
@Maira Giftmine, sebenarnya ada. Bukan azan penuh, cuma bahagian 'Allahukabar' waktu awal je.. Tapi buat masa nie ada error sikit jadi kadang2 ada, kadang2 xde. Saya akan cuba perbaiki dalam masa terdekat nie. Terima kasih atas teguran.

Popular posts from this blog

haproxy on Centos 7 with SELinux

Setting up haproxy and varnish with reference to the configuration from these sites: http://sharadchhetri.com/2014/12/20/how-to-install-varnish-4-version-on-centos-7-rhel-7/ https://www.upcloud.com/support/haproxy-load-balancer-centos/ And finally can access plone on the server. But when I check the haproxy status, only client1 can be accessed. All other clients were down with general socket error, permission denied. Googling a bit I finally found out it was due to SELinux. Refer to this page: http://stackoverflow.com/questions/26420729/haproxy-health-check-permission-denied With the solution from that page, I installed policycoreutils-python and tried to run the command given: semanage port --add --type http_port_t --proto tcp 8081 But that command failed with the error that the port was already defined. When I looked it up using: semanage port -l | grep 8081 It belonged to some other type (transproxy_port_t). When I tried to delete the type using: semanage port -d -t transpro…

Installing Centos 7 on HP G7 Server

When I first initially tried it, the installer cannot detect any local hard disk to install to. After much googling found out that it was because a certain driver for the Smart Array Controller is no longer available on Centos 7. To allow for use of the new driver on old hardware, you need to enable the option. Once the DVD has booted and on the first menu screen, highlight the first option and then press tab which would bring you to a command line where you can add additional parameters to boot. Add the following parameters: hpsa.hpsa_allow_any=1 hpsa.hpsa_simple_mode=1 And then press enter to boot. You should now be able to install as you wish. After installation, on the first boot, make sure at the menu, press 'e' to edit the parameters and add them again. Then once booted, go to /boot/grub2/grub.cfg to permanently add the parameters to the menu. Refer to http://serverfault.com/questions/611182/centos-7-x64-and-hp-proliant-dl360-g5-scsi-controller-compatibility and it&#…

Me and my sleep apnea

I have been suffering from sleep apnea for quite a few years already. It started to show when I was still with OSCC some 6 years back when I would sometimes "accidentally" sleep at my cubicle. Early on I just dismissed it as because I was growing fat (we ate a lot at OSCC.. :P and I barely went anywhere except my cubicle) and also because of babies. Oh babies.. those cute little things that keeps you awake at night so that they can be so cute and charming when your friends and relatives come over the next day. So it was dismissed. Later on I got more and more used to sleeping at work, started associating it with my lack of motivation and sometimes feeling of downright depression. And I kept growing fatter and fatter, which I assumed was the reason why I was getting more and more tired.

But then around 2 years ago a friend of mine suggested maybe I've got sleep apnea. And a few other people suggested I go to a sleep clinic and all that. Put it off for quite a while. Until…