Hi, I'm trying to get the intent line working, but...
# android
t
Hi, I'm trying to get the intent line working, but am not sure how.
Copy code
fun scheduleAlarm(){
            val time = GregorianCalendar().getTimeInMillis()+24*60*60*1000
            val alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
            val intent = Intent(Context, alarmReciever::class.kotlin)
            val alarmIntent = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)
            alarmManager.setExact(RTC_WAKEUP, 0, alarmIntent)
        }