PDA

View Full Version : Assist in builiding my local prayer time Android App.



gabriel
09-12-2010, 09:51 AM
A local lad cut up the local prayer timetable into 12 months and made into a screensaver on his iphone.
I have an Android based phone so have decided to do it differently;

1) Display it like a clock ie.
------------
| Asr |
| 14:32 |
------------
2). Once the next prayer time kicks in it changes.
3). Clicking on the app will open the month and allow to scroll through the other months.

This is a specific app for my masjid timetable although there are apps out there that cover an area as big as London time generic.

It is something I am building for me my wife and my nieces to use [since our phones are Android based] so they can use when they out and about, especially with school out time in the evening and you girls like to chill that little bit long with their friends and can easily miss the time for Maghrib by not being conscious.

Anyhows any more suggestions that will make it useful?

Usman
09-12-2010, 09:56 AM
nice work masha'Allah, can you ad like a wav file option too? like play a selected wav file as an alarm when the time kicks in, also add repetition times, like loop, repeat x times, or play once or don't play any sounds.

gabriel
09-12-2010, 10:47 AM
nice work masha'Allah, can you ad like a wav file option too? like play a selected wav file as an alarm when the time kicks in, also add repetition times, like loop, repeat x times, or play once or don't play any sounds.

JazakAllah for the feedback.

I think I will use a professional male voice and not allow the option to use your own ringtone, this will prevent people from using music, etc. Maybe two times i.e. once to let them know the prayer time has started i.e. 'It is now time for the Asr prayer' and an option to be notified a warning 5, 10, 15, etc minutes before the time finished i.e. The time for Asr is about to finish'. What do you think?

nuke
09-12-2010, 11:04 AM
:salam:

you can take a look at this one for some ideas,

http://www.searchtruth.com/mobile/azan/download_mobile_azan.php

I haven't found it really useful myself though.

Amd yes it's definately a good idea to play male voice as an alert, the above app
has azan in it and some times it played in even in the toilet.

gabriel
09-12-2010, 11:14 AM
:salam:

you can take a look at this one for some ideas,

http://www.searchtruth.com/mobile/azan/download_mobile_azan.php

I haven't found it really useful myself though.

Amd yes it's definately a good idea to play male voice as an alert, the above app
has azan in it and some times it played in even in the toilet.

Thanks for the link.
I have seen plenty of these before and like you I am not keen when the Azan goes off in appropriate places, further the Azan has a practical use and should only be called out when a pray is to be prayed and not to give you a notification, so I will be scrapping that option.

This app is essentially a basic shell and only fulfils the need to work with your local masjid only and therefore not for universal needs. I suppose a Qiblah direction tool would be useful but they do exist and you could download that as a separate app for free.

Someone like me who is lazy and originally had 3 timetables in the house and now for some reason there is only one??? in my bedroom and then too lazy to go up stairs and have a look myself and guess when the time has kicked in or shout to my missus or send me son upstairs to have a look lol

Basil al-Mamluk
09-12-2010, 12:00 PM
I have no experience in android development but I'd be interested in learning.

meelash
09-12-2010, 12:05 PM
السلام عليكم,

Maybe you could include a Hijri date counter. It can be pretty simple to implement just a count to twenty-nine and then a reminder and query on whether you saw the moon or not. On the basis of that it resets the count or continues to 30.

I must confess this is not my own idea, I just glanced at a prayer time app called Guidance I have on my computer... :D

daywalk3r
09-12-2010, 12:21 PM
:salam: Br Gabriel

Forgive my lack of knowledge on apps and phones - would android based apps work on the iphone and vice versa?

Id/We'd be very much interested in doing one for our masjid also..... How hard is this to do - do you need specialist software? Obviously i wont go near it (as i wont have a clue!) but could ask our masjid's website admin guy to look into it..

p.s Br Gabriel what happend with all those projects you were looking to start up i.e. the old 'Al Kauther and Al Magrhib' thread...?

gabriel
09-12-2010, 01:07 PM
السلام عليكم,

Maybe you could include a Hijri date counter. It can be pretty simple to implement just a count to twenty-nine and then a reminder and query on whether you saw the moon or not. On the basis of that it resets the count or continues to 30.

I must confess this is not my own idea, I just glanced at a prayer time app called Guidance I have on my computer... :D

I do not believe it will have any relevance to our needs

Colonel_Hardstone
09-12-2010, 03:38 PM
:salam: Br Gabriel

Forgive my lack of knowledge on apps and phones - would android based apps work on the iphone and vice versa?



:ws:

No.

gabriel
09-12-2010, 04:21 PM
:salam: Br Gabriel

Id/We'd be very much interested in doing one for our masjid also..... How hard is this to do - do you need specialist software? Obviously i wont go near it (as i wont have a clue!) but could ask our masjid's website admin guy to look into it..

p.s Br Gabriel what happend with all those projects you were looking to start up i.e. the old 'Al Kauther and Al Magrhib' thread...?

It does not require any specialist software but does require you to use a particular script that the Android operating system understands and can read off which is the base framework and you build on that. The method of coding is similar to all languages and there is a lot of pre-built scripts already out there that a developer can build on. Although saying that you would have to have a knowledge on how the Android works and therefore justify a persons time to learn and create a one-off app.

I outsource the work so consequently do not need to touch it.

Let me build this one and you can have a look and play with it and then if you like what you see we can build one for your masjid inshAllah.

The answer to your second question is that i got back a week ago after a month on the Hajj and now planning on going to Bangladesh in January. At best I am talking to scholars in my own time gathering insight but it seems that the concept has not gained any ground and may take the way of the dodo. However in hindsight I have reflected on an important point from the lives of the Prophets and that is to be patient.

"Allah is beautiful and He loves beauty." (Muslim)
"Patience is beautiful". [Yusuf 12:84]
"So [O Believers] endure hardship with beautiful endurance". [al-Ma'arij 70: 5]

nuke
09-12-2010, 04:52 PM
It does not require any specialist software but does require you to use a particular script that the Android operating system understands and can read off which is the base framework and you build on that. The method of coding is similar to all languages and there is a lot of pre-built scripts already out there that a developer can build on. Although saying that you would have to have a knowledge on how the Android works and therefore justify a persons time to learn and create a one-off app.

I outsource the work so consequently do not need to touch it.

Let me build this one and you can have a look and play with it and then if you like what you see we can build one for your masjid inshAllah.

Android market is getting bigger everyday, and seeing the crummy apps out there this could be hit. I would love to take a peek at your app when it's ready inshAllah. So you would be entering
your masjid's all year calender locally one off, so yeah it would be simple elegant and would work.
i mean beats keeping 2-3 timetables in your wallet for sure and removes the niggles of 5 different prayer timetable calculation settings/daylight saving settings bla bla ...




The answer to your second question is that i got back a week ago after a month on the Hajj and now planning on going to Bangladesh in January. At best I am talking to scholars in my own time gathering insight but it seems that the concept has not gained any ground and may take the way of the dodo. However in hindsight I have reflected on an important point from the lives of the Prophets and that is to be patient.

"Allah is beautiful and He loves beauty." (Muslim)
"Patience is beautiful". [Yusuf 12:84]
"So [O Believers] endure hardship with beautiful endurance". [al-Ma'arij 70: 5]

Brother i recall you went for 10 days jamaat right ? it was in ramadhan. I joined the site and everything
but it didn't took off. BTW, have you seen

http://www.sunniforum.com/forum/showthread.php?65467-Euro-Sunni-16-day-Intensive-Shariah-course-in-UK-in-December

Muadh bhai/euro sunni are spearheading this. I mean this is home turf right ?
we would be playing to our strengths and imagine the barakah that a traditional enviroment
like this brings. This is a Godsend, maybe you should talk to muadh bhai/colonel hardstone.

gabriel
09-12-2010, 05:31 PM
Android market is getting bigger everyday, and seeing the crummy apps out there this could be hit. I would love to take a peek at your app when it's ready inshAllah. So you would be entering
your masjid's all year calender locally one off, so yeah it would be simple elegant and would work.
i mean beats keeping 2-3 timetables in your wallet for sure and removes the niggles of 5 different prayer timetable calculation settings/daylight saving settings bla bla ...

Essentially it would not be more then that.
I mean it will have no other function except to show you the times for your local masjid.
Other larger areas such as Bolton which have council for the Masjids and agreed upon times for the community would benefit well if you are moving around the town and the time for prayer crops up and you need to pray [generally ladies I am thinking of here].

I may add one more feature that will show the time gap between two prayers ie. 2 hrs 13 mins, so if they are heading out they can time it well.

Like now I am sat here thinking I need to go and pray and I was sat there at Dhur time doing some work not knowing when Asr kicks in and really wanted to get this task done and push dhur as much as I could close to the asr time. Now that is really bad practice and Asr time could lapse here, but that is the weakness that kicks in, so the most important thing is not to let the time pass.

But it is my mother in law really lol she will from 10 - 15 minutes before the prayer time kicks say is it time, is it time, is it time and on and on and can not sit still [mashAllah] and since I do not know the time and second guess like 'urr not yet' and she will be like 'how do you know you not checked' and I will be shouting to 3 - 4 four people to go up stairs and check and they busy doing something else so I Have to get off my lazy back up the stairs and check! I mean how frustrating is that lol, its like I have to do all the work in the house. It is bad enough sitting in front of the fire all day watching people go to work and listen to their complaints about life, extremely taxing on my mind....lol

But yeah, it will be a good tool :)

nuke
09-12-2010, 05:51 PM
Brother i recall you went for 10 days jamaat right ? it was in ramadhan. I joined the site and everything
but it didn't took off. BTW, have you seen

http://www.sunniforum.com/forum/showthread.php?65467-Euro-Sunni-16-day-Intensive-Shariah-course-in-UK-in-December

Muadh bhai/euro sunni are spearheading this. I mean this is home turf right ?
we would be playing to our strengths and imagine the barakah that a traditional enviroment
like this brings. This is a Godsend, maybe you should talk to muadh bhai/colonel hardstone.

^

gabriel
09-12-2010, 05:56 PM
:salam:

I like your plan ;)
You might also like to add the sunrise - ( for some of us sleepy head's and ishraq)
and sunset's.

:ws:

Yup, Ishraq will be in there I believe but I need to remind the developer of it jazakAllah

gabriel
09-12-2010, 05:56 PM
^

Have checked that out and will need to talk to the colonel on that pointer, jazakAllah.

meelash
09-12-2010, 05:57 PM
I'm a bit surprised that such an app is not already available. There were loads of them on the Apple AppStore last time I checked.

gabriel
09-12-2010, 06:07 PM
I'm a bit surprised that such an app is not already available. There were loads of them on the Apple AppStore last time I checked.

Loads of apps exist for prayer timetables but I need one specific to my masjid. There is a ghair Muqalid place that uses a manchester city timetable, now the problem is that if I was to go off that time especially Maghrib in Ramadam I would end up breaking the fast earlier so I would need to keep something with me that would tell me the exact timing for my local Masjid.

I think if there is interest then I can create individual ones for each mosque while merging the data into a universal version over time. Also using GPS you can make the times change as you move from area to area or just select a location specific ie bury or hyde or Ashton, etc and not Manchester and it can change to a more localised time. What you think?

gabriel
09-12-2010, 06:16 PM
Just an artist impression of what it will look like:

http://i54.tinypic.com/33f7o5f.png

It will not however take up that much space on the home screen.

Nasr
10-12-2010, 11:36 AM
MasjidNow is a good app for tracking prayer times. Don't think it has a widget though.

gabriel
11-12-2010, 12:03 PM
MasjidNow is a good app for tracking prayer times. Don't think it has a widget though.

It is an app to find you a masjid I did not see the tracking of the prayer times ??

gabriel
14-12-2010, 04:15 PM
Just some images of what the app will look like:

http://i56.tinypic.com/m8ogep.jpg

http://i52.tinypic.com/21j97gj.jpg

http://i56.tinypic.com/jb65g6.jpg

http://i56.tinypic.com/20rkb9y.jpg

http://i56.tinypic.com/2qwn7yw.jpg

The sunrise time will be added and the Homescreen widget will be cleaned up to look a little more glossy.
I will get the reminder voice added on the next update.

Incidentally some others were thinking of building the app for their own Masjid. If you are interested then give me a shout out, it can not be done for free and will need development cost, fortunately something like this is not expensive. I would like to be able to work towards two versions [one for individual Masjids and then a universal version that will work of GPS and change over when you are in a certain vicinity of a Masjid].

Basil al-Mamluk
14-12-2010, 04:24 PM
Just some images of what the app will look like:

http://i56.tinypic.com/m8ogep.jpg

http://i52.tinypic.com/21j97gj.jpg

http://i56.tinypic.com/jb65g6.jpg

http://i56.tinypic.com/20rkb9y.jpg

http://i56.tinypic.com/2qwn7yw.jpg

The sunrise time will be added and the Homescreen widget will be cleaned up to look a little more glossy.
I will get the reminder voice added on the next update.

Incidentally some others were thinking of building the app for their own Masjid. If you are interested then give me a shout out, it can not be done for free and will need development cost, fortunately something like this is not expensive. I would like to be able to work towards two versions [one for individual Masjids and then a universal version that will work of GPS and change over when you are in a certain vicinity of a Masjid].

what emulation software do you use

gabriel
14-12-2010, 04:25 PM
what emulation software do you use

I do not know, I am not the one who makes it; do you want me to find out?

Basil al-Mamluk
14-12-2010, 05:40 PM
I do not know, I am not the one who makes it; do you want me to find out?

if you could. its been slow at work lately and i got an android myself, wanna see what i can cook up for it

meelash
14-12-2010, 07:34 PM
The program looks like Eclipse, so there's probably an Android plugin or something for Eclipse? If there's an Android SDK package it would probably have all that stuff in it.

gabriel
16-12-2010, 06:20 PM
The program looks like Eclipse, so there's probably an Android plugin or something for Eclipse? If there's an Android SDK package it would probably have all that stuff in it.

Alhamdulillah the app is done and looks cool.

Fortunately the developer was a Muslim and hafiz of Quran [just found out]

If you got a Masjid you want to do for I would be willing to assist. Get in contact via www.meaningofquran.com

davidovitch
26-12-2010, 04:36 PM
Alhamdulillah the app is done and looks cool.

Fortunately the developer was a Muslim and hafiz of Quran [just found out]

If you got a Masjid you want to do for I would be willing to assist. Get in contact via www.meaningofquran.com

i'm sure this could easily be adapted for ANY mosque. The prayer times depend mainly on the latitude and longitude. These can be obtained from google earth, or wikimapia. The program should allow you to type in your longitude and latitude, or even better, get it from the phones inbuilt gps / location services. Turning this app into a universal app would be sooooooo straightforward for a technically minded person.

Ps. praytimes.org (http://praytimes.org/code/) has the source code for building your own prayer calculator. everything you need to know is there.

gabriel
28-12-2010, 12:46 PM
i'm sure this could easily be adapted for ANY mosque. The prayer times depend mainly on the latitude and longitude. These can be obtained from google earth, or wikimapia. The program should allow you to type in your longitude and latitude, or even better, get it from the phones inbuilt gps / location services. Turning this app into a universal app would be sooooooo straightforward for a technically minded person.

Ps. praytimes.org (http://praytimes.org/code/) has the source code for building your own prayer calculator. everything you need to know is there.

I have got most of that, but how do you get the exact prayer time for a singular locality? Our town is on the outskirts and the only Muslim town from 3 directions for at least 10 miles. So we have our own timetable.

There are many out there that caters for prayer times, but the one I created was specific to our masjid and required the timetable to create.

jaseemameer
05-08-2011, 01:00 AM
I'm developing an app for prayer times, by taking the co-ordinates of the current location. But gets stuck between while converting to date from double, when invoking the calender.getInstance(). It asks fro adding source. Please help me out.
By the way the one you developed looks cool, gave me a better idea of what can be done. If you could share the code, it would be really helpful...
I'm also trying to develop a qibla finder also, if you can give me any inputs, i would be grateful.

Jetheat
20-09-2011, 06:51 AM
Alhamdulillah, an app for this exact purpose has been built which works on the iPhone and Android phones.

It displays the local masjid's timetable including beginning and jamaat times.
You can also have it show a secondary masjid too.
It available on both App Stores and is called "Masjid Timetable".

The thread regarding this app is here (http://www.sunniforum.com/forum/showthread.php?77864-Finally-Local-Masjid-Timetable-on-iPhone-amp-Android).

This app will display the jamaat time of any masjid.

Hope this helps,

JH