Subscribe the notification of another app. #2

Case of Hangouts, if a user not check the notification of Hangouts,
receive message like “2 unread message.” without real content.
Only Hangouts…

Therefore, when receive a notification every time, i’ll clear the notification.

Available access the context of another application. But can’t modify.
If modified that, it caused Security Exception.

call cancel() in notificationManager of remote context….

10-27 12:22:09.525: E/AndroidRuntime(5055): java.lang.RuntimeException: Unable to start receiver com.mypackage.MyReceiver: java.lang.SecurityException: Calling uid 10141 gave package com.kakao.talk which is owned by uid 10152

I tried googling hard… but coundn’t.
Finally, I found it.
notification.deleteIntent.send(context,0,new Intent());
Add just one line like this.
In addition, run the notification by “notification.contentIntent”

One thought on “Subscribe the notification of another app. #2”

  1. I see you don’t use the potential of social websites like FB
    on your site. You can get huge traffic from social sites on autopilot using one
    useful app, for more info search in google for:

    Alufi’s Social Automation

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>