Android Prayer Times Library (AZAN)

Minaret of Great Mosque of Mecca

What is Azan?

Calculate the time difference between the sun hits its highest point in the sky (Dhuhr time) and any other angle
Calculate Asr time
Calculate Sunset time
All supported methods in Azan library

How To use?

allprojects {  
repositories {
maven {
url 'https://jitpack.io'
}
}
}
implementation 'com.github.ahmedeltaher:Azan:3.0.0'

Example of how to call prayer times

val today = SimpleDate(GregorianCalendar())
val location = Location(30.045411, 31.236735, 2.0, 0)
val azan = Azan(location, Method.EGYPT_SURVEY)
val prayerTimes = azan.getPrayerTimes(today)
val imsaak = azan.getImsaak(today)
println("----------------results------------------------")
println("date ---> " + today.day + " / " + today.month + " / " + today.year)
println("imsaak ---> $imsaak") println("Fajr ---> " + prayerTimes.fajr())
println("sunrise --->" + prayerTimes.shuruq())
println("Zuhr --->" + prayerTimes.thuhr())
println("Asr --->" + prayerTimes.assr())
println("Maghrib --->" + prayerTimes.maghrib())
println("ISHA --->" + prayerTimes.ishaa())
println("----------------------------------------")

Resources:

Android Lead | Senior Mobile Engineer https://github.com/ahmedeltaher https://www.linkedin.com/in/ahmed-eltaher-65985252