All Projects → ahmedeltaher → Prayer Times Android Azan

ahmedeltaher / Prayer Times Android Azan

Licence: apache-2.0
Prayer + Time + Android + Kotlin + Azan + Library + timezone + islamic + salah + Library aiming to calculate prayer time with one line code , if you implement prayer time application , there is no need to do this headache again .

Programming Languages

java
68154 projects - #9 most used programming language
kotlin
9241 projects

Projects that are alternatives of or similar to Prayer Times Android Azan

Posix tz db
Generates POSIX timezones strings
Stars: ✭ 57 (-77.29%)
Mutual labels:  time, timezone
Js Joda
🕑 Immutable date and time library for javascript
Stars: ✭ 1,298 (+417.13%)
Mutual labels:  time, timezone
Time
A simplified approach to working with dates, times, and time zones.
Stars: ✭ 83 (-66.93%)
Mutual labels:  time, timezone
nepali-datetime
Python's core datetime inspired nepali datetime (BS date & NPT) package 🇳🇵
Stars: ✭ 36 (-85.66%)
Mutual labels:  time, timezone
Tzupdate
Set the system timezone based on IP geolocation
Stars: ✭ 130 (-48.21%)
Mutual labels:  time, timezone
NTP
NTP library for Arduino framework
Stars: ✭ 20 (-92.03%)
Mutual labels:  time, timezone
Date
A date and time library based on the C++11/14/17 <chrono> header
Stars: ✭ 2,389 (+851.79%)
Mutual labels:  time, timezone
TimesDates.jl
Nanosecond resolution for Time and Date, TimeZones
Stars: ✭ 28 (-88.84%)
Mutual labels:  time, timezone
Ticktock
A timezone data management library for the JVM and Android targeting java.time APIs in Java 8+
Stars: ✭ 122 (-51.39%)
Mutual labels:  time, timezone
Date Fns Timezone
Parsing and formatting date strings using IANA time zones for date-fns.
Stars: ✭ 118 (-52.99%)
Mutual labels:  time, timezone
Shell-Scripts
Shell scripts about some basic topics, current time, calculator, sorting, restaurant and more.
Stars: ✭ 100 (-60.16%)
Mutual labels:  time, timezone
Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (+690.04%)
Mutual labels:  time, timezone
timezones
Nim timezone library compatible with the standard library.
Stars: ✭ 37 (-85.26%)
Mutual labels:  time, timezone
Date Fns Tz
Complementary library for date-fns v2 adding IANA time zone support
Stars: ✭ 385 (+53.39%)
Mutual labels:  time, timezone
hs-hourglass
efficient and simpler time API for haskell
Stars: ✭ 43 (-82.87%)
Mutual labels:  time, timezone
Timezone Support
Lightweight time zone support for your applications or other date libraries.
Stars: ✭ 90 (-64.14%)
Mutual labels:  time, timezone
temps-lite
A smart, good-looking little app which tries to speak your language the way you are used to.
Stars: ✭ 40 (-84.06%)
Mutual labels:  time, timezone
time machine
A date and time API for Dart
Stars: ✭ 120 (-52.19%)
Mutual labels:  time, timezone
Luatz
Time, Date and Timezone library for lua
Stars: ✭ 92 (-63.35%)
Mutual labels:  time, timezone
Delorean
Delorean: Time Travel Made Easy
Stars: ✭ 1,793 (+614.34%)
Mutual labels:  time, timezone

AZAN

Android Arsenal Android ArsenalLICENSE Build Kotlin

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 moreaccurent speacilly in cloudy cities, Mosques currently use a complex calcualtion based on latitude, longitude, height, timezone, sun raise time.

What is Azan library?

Library aiming to calculate prayer time with one line code , if you implement prayer time application , there is no need to do this headache again .

azan-preview

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

Azan library enables you to determin latitude, longitude, timezone, height, The Way of Calculation as Inputes.

Supported Calculation Methods :

Method Name Fajr Angel Isha Angel
Umm al-Qura University, Makkah 18.5 90 min after Maghrib , 120 min during Ramadan
MUHAMMADIYAH 20 18
Muslim World League (MWL) 18 17
Egyptian General Authority of Survey 19.5 17.5
University of Islamic Sciences, Karachi 18 18
Islamic Society of North America (ISNA) 15 15
Ithna Ashari 16 14
Institute of Geophysics, University of Tehran 17.7 14
UOIF (Union des organisations islamiques de France) 12 12
Kuwait Calc method 18 17.5

How to use ?

Add it to dependencies in your gradle file

  • Add it in your root build.gradle at the end of repositories:

    • in your allprojects section , you have to add maven { url 'https://jitpack.io' }
allprojects {  
 repositories { 
                      maven { 
                                url 'https://jitpack.io' 
  	                      }
  	         }
  	       }
  • in your build.gradle of your app module , Add the dependency

    implementation 'com.github.ahmedeltaher:Azan:3.0'

Example how to get 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("----------------------------------------") 

LICENSE

Ahmed Eltaher 2016

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].