0

i have 3 times

  • 02:00 AM
  • 02:30 AM
  • 08:15 PM

i need set alarms for these times, and when the any time is coming i need my app run sound from raw folder and show X layout

Ray2020 W
  • 1
  • 1
  • 1
    Possible duplicate of [Set android alarm clock programmatically](https://stackoverflow.com/questions/13909040/set-android-alarm-clock-programmatically) – Iffat Fatima Feb 12 '19 at 06:05
  • well,, i don't need this (TimePickerDialog) i need put time as String and i need multi times not one time – Ray2020 W Feb 12 '19 at 06:27
  • You need to convert time in string to long to set the alarm. Whether you get that time from TimePicker or use your own hadrcoded string. – Iffat Fatima Feb 12 '19 at 06:30
  • well,, just answear me how can i put three times?? – Ray2020 W Feb 12 '19 at 06:34
  • i don't need TimePacker and...Etc i just need alarm me for this three times 02:00 AM 02:30 AM 08:15 PM – Ray2020 W Feb 12 '19 at 06:35
  • See this: https://stackoverflow.com/a/16095113/4406346 Put you times in array, and execute the code mentioned in the post in a loop 3 times by converting string time to Calendar time. – Iffat Fatima Feb 12 '19 at 06:36
  • ok, sister fatima i have other request from you if you want help me about prayer app i need just edit 1 line in it – Ray2020 W Feb 12 '19 at 06:43
  • here is source code ( https://github.com/alphamu/PrayTime-Android ) this have notifaction for ramadhan ok? the problem when the notifaction time is coming he not run the sound in raw folder he run the default sound of device how can i fix this bugs – Ray2020 W Feb 12 '19 at 06:45

0 Answers0