Me gustaría que mi notificación se ejecute a las 12:00 pm todos los días. ¿Cómo se reemplaza el valor cuando con un tiempo?Establecer la notificación a la hora específica
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
Notification notify = new Notification(R.drawable.icon,"Its Time to Eat",when);
Context context = GrubNOWActivity.this;
CharSequence title = "Its Time to Eat";
CharSequence details = "Click Here to Search for Restaurants";
Intent intent = new Intent(context,Search.class);
PendingIntent pending = PendingIntent.getActivity(context, 0, intent, 0);
notify.setLatestEventInfo(context, title, details, pending);
nm.notify(0,notify);
que parece haberlo hecho, ¡gracias! –
, pero ¿cómo se puede configurar para un tiempo en particular? digamos que quiero que se establezca cuando son 10Pm, ¿cómo hago eso? – silverFoxA
cómo configurarlo para un día específico, por ejemplo, de lunes a viernes y es hora de las 12 pm? –