android - Extract Notification Pending Intent Content for Accessibility -
i'm working on accessibility features android application, 1 of announce user notifications.
using following standard code, can access notification information:
@override public void onaccessibilityevent(final accessibilityevent event) { final notification not = (notification) event.getparcelabledata(); final charsequence tick = not.tickertext; final pendingintent pi = not.contentintent;
but here i'm stuck @ how can extract information pendingintent establish, example, activity (if any) points at.
i can establish originator, using further standard code of:
final string packagename = event.getpackagename().tostring()
this fine in cases, many notifications google services framework or android system , therefore pendingintent information give further clues - example of gtalk, under generic package name of google services framework.
i've read many related posts, including how action pending intent, can't work out how access information, or if possible.
pi.getcreatorpackage(); pi.gettargetpackage();
both return google services framework (in case of gtalk)
pi.readpendingintentornullfromparcel(?);
looks little more promising, i'm not sure it.
i hope can help, or tell me it's not possible! thank in advance.
unfortunately, isn't possible. contents of pendingintent
managed activitymanager
, there no api available data activitymanager
.
Comments
Post a Comment