forked from ahmedeltaher/Prayer-Times-Android-Azan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathread.me
51 lines (28 loc) · 1.63 KB
/
read.me
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Azan
# what is azan ?
```The Muslim call to ritual prayer made by a muezzin from the minaret of a mosque (or now often played from a recording) .
Muslims have 5 prayers per day , at each time all muslims are notified by Azan , to pray. first Muslims used to calcualte prayer time with sun raise and sun shadows , but to simplyied it and make it more accurent speacilly in cloudy cities , Mosques currently use a complex calcualtion based on latitude ,longitude,height,timezone, sun raise time.```
# what is Azan library?
Library aming to calculate prayer time with one line code , if you implement paryer time application , there is no need to do this headache again .
![My image](https://s3.amazonaws.com/playstore/images/7b46b7c9f767df4bd09dd088ef602165)
-Islam Time prayers is every complex to calculate , cause there is many variables in this calculations like :
- **latitude**
- **longitude**
- **timezone**
- **height**
- **The Way of Calculation**
you can determin your latitude, longitude, timezone, height, The Way of Calculation .
# How to use ?
Add it to dependencies in your gradle file
```compile 'com.eltaher:azan:2.1'```
# Example how to get prayer times
```
GregorianCalendar date = new GregorianCalendar();
PrayerTimes prayerTimes = new TimeCalculator().date(date).location(-6.38043079,106.85337984, 0, 7).timeCalculationMethod(EGYPT).calculateTimes();
prayerTimes.setUseSecond(true);
prayerTimes.getPrayTime(PrayersType.FAJR);
prayerTimes.getPrayTime(PrayersType.SUNRISE);
prayerTimes.getPrayTime(PrayersType.ZUHR);
prayerTimes.getPrayTime(PrayersType.MAGHRIB);
prayerTimes.getPrayTime(PrayersType.ISHA);
```