मैं अपनी अधिसूचना प्रतिदिन 12:00 बजे चलाने के लिए चाहूंगा। एक समय के साथ मूल्य को आप कैसे बदलते हैं?विशिष्ट समय पर अधिसूचना सेट करें
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);
ऐसा लगता है कि ऐसा हुआ है, धन्यवाद! –
लेकिन किसी एक विशेष समय के लिए इसे कैसे सेट करें? मान लीजिए कि मैं इसे सेट करना चाहता हूं जब यह 10 पीएम है मैं यह कैसे करूँ? – silverFoxA
इसे विशिष्ट दिन के लिए केवल सोमवार से शुक्रवार के लिए कैसे सेट करें और यह समय 12 बजे है? –