درود برشما بزرگواران عزیز،
در مورد Notification میخوام به کد زیر یه قسمتی رو اضافه کنم که با کلیک روی نوتیفیکیشن با مرورگر گوشی یه لینک باز بشه
اون قسمت مربوط به این رو چگونه باید بنویسم؟ از همون onClickListener ؟؟
در مورد Notification میخوام به کد زیر یه قسمتی رو اضافه کنم که با کلیک روی نوتیفیکیشن با مرورگر گوشی یه لینک باز بشه
اون قسمت مربوط به این رو چگونه باید بنویسم؟ از همون onClickListener ؟؟
کد پیاچپی:
NotificationManager nm=(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
Notification notify=new Notification(R.drawable.tellme,
"Blah Blah", System.currentTimeMillis());
Context context=MainActivity.this;
CharSequence title="Blah Blah";
CharSequence details="Blah Blah";
Intent intt=new Intent();
PendingIntent pending=PendingIntent.getActivity(context, 0, intt, 0);
notify.setLatestEventInfo(context, title, details, pending);
nm.notify(0,notify);