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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -