android - how to set the value in custom notification textview -
please me set text in textview in custom notification private void startnotification() { string ns = context.notification_service; notificationmanager notificationmanager = (notificationmanager) getsystemservice(ns); notification notification = new notification(r.drawable.ic_launcher, null, system.currenttimemillis()); remoteviews notificationview = new remoteviews(getpackagename(),r.layout.mynotification); mremoteviews.settextviewtext(r.id.appname, getresources().gettext(0,"gfhf")); mbuilder.setcontent(mremoteviews); intent notificationintent = new intent(this, flashlight.class); pendingintent pendingnotificationintent = pendingintent.getactivity(this, 0, notificationintent, 0); notification.contentview = notificationview; notification.contentintent = pendingnotificationintent; notification.flags |= notification.flag_no_clear; intent switchintent = new intent(this, switchbuttonlistener.class); pendingintent pend...