NotificationRecord (extras text)

114 views
Skip to first unread message

S

unread,
Jun 21, 2014, 1:44:23 AM6/21/14
to tas...@googlegroups.com

Hello,

how do i extract notification extra text?

I've tried %evtprm(:) without luck. It only show

-App name
-Notification title

I need the extra text (2 on image).

When i did "adb shell dumpsys"

Under "NotificationRecord" i found the layout of notification was like this :

      extras={

        android.title=some title

        android.textLines=[Ljava.lang.CharSequence;@42ffc3b8 {

          KBR05 textaa,

          KBR05 textbb,

          KBR05 textccc,

        }


Any idea how to extract android.textLines via Tasker?

I don't want to do adb shell dumpsys always and some useless grep (data portion is too big to do this every moment).


Thanks in advance

John Doe

unread,
Jun 21, 2014, 4:07:08 AM6/21/14
to tas...@googlegroups.com
What is your Android version?

S

unread,
Jun 21, 2014, 5:54:45 AM6/21/14
to tas...@googlegroups.com
4.4.4

John Doe

unread,
Jun 21, 2014, 7:35:36 AM6/21/14
to tas...@googlegroups.com
You can try to use the plug Notification Listener. It doesn't catch textLines but title, text and subtext.

Il giorno sabato 21 giugno 2014 11:54:45 UTC+2, S ha scritto:
4.4.4

S

unread,
Jun 21, 2014, 12:56:21 PM6/21/14
to tas...@googlegroups.com

Can you point me where i can find this  'Notification Listener' plugin?

Thanks.

John Doe

unread,
Jun 21, 2014, 1:39:11 PM6/21/14
to tas...@googlegroups.com

S

unread,
Jun 21, 2014, 1:44:53 PM6/21/14
to tas...@googlegroups.com



W dniu sobota, 21 czerwca 2014 19:39:11 UTC+2 użytkownik John Doe napisał:
https://play.google.com/store/apps/details?id=com.balda.notificationlistener


Thank you :)
Reply all
Reply to author
Forward
0 new messages