ataradov / alarm-me

Simple Android reminder application
GNU General Public License v3.0
54 stars 37 forks source link

add new alarm programmatically with specific day #8

Closed ridhoaslam closed 4 years ago

ridhoaslam commented 4 years ago

hi, how to add new alarm programmatically with specific day (eg. FRIDAY). thanks..!

newAlarm = new Alarm();
            newAlarm.setId(2);
            newAlarm.setTitle("NEW ALARM IN FRIDAY");
            newAlarm.setDays(Calendar.FRIDAY);  //its not working correctly, I wanna set to friday only
            newAlarm.setDate(prayerTimes.dhuhr.getTime());
            mAlarmListAdapter.add(newAlarm);
ataradov commented 4 years ago

I really have no idea. This project is mostly abandoned since google decided to make is super hard to actually make alarms that work. I'm not an android developer and I don't want to spend time investigating this.