How to listen for com.sonyericsson.home.action.UPDATE_BADGE intent?

357 views
Skip to first unread message

cramu

unread,
Jul 23, 2014, 12:29:39 PM7/23/14
to tas...@googlegroups.com
I'm trying to get the unread count badge for some apps into Tasker.

These apps send a broadcast intent whenever the count changes:
Action: com.sonyericsson.home.action.UPDATE_BADGE
Extra 1: com.sonyericsson.home.intent.extra.badge.PACKAGE_NAME
Extra 2: com.sonyericsson.home.intent.extra.badge.MESSAGE

Unfortunately, it appears that Taskers built-in broadcast receiver won't catch these intents, since some lines of code would be needed in its AndroidManifest.xml to do so:

<receiver android:name="MyReceiver">
    <intent-filter>
        <action android:name="com.sonyericsson.home.action.UPDATE_BADGE"/>
    </intent-filter>
</receiver>
Anybody knows an alternative way to extract the unread count from these intents and get them into Tasker?

Matt R

unread,
Jul 23, 2014, 6:28:04 PM7/23/14
to tas...@googlegroups.com
I don't think Tasker should need to declare the broadcast receiver in its manifest.  It can do so dynamically.  Reasons for it not working could be (1) error in your context, (2) directed broadcast sent to a specific package.  Only (1) can be solved, so try exporting and posting your profile description and perhaps a link to where you found that intent information.

Matt

cramu

unread,
Jul 23, 2014, 7:05:23 PM7/23/14
to tas...@googlegroups.com
My profile never triggered:

Profile: Badge (11)
Event: Intent Received [ Action:com.sonyericsson.home.action.UPDATE_BADGE Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: Badge (7)
A1: Write File [ File:badge.txt Text:%TIME
%com_sonyericsson_home_intent_extra_badge_package_name
%com_sonyericsson_home_intent_extra_badge_message Append:On Add Newline:On Continue Task After Error:On ] 



Matt R

unread,
Jul 24, 2014, 12:00:37 AM7/24/14
to tas...@googlegroups.com
It's a permission issue (mentioned in that link).

Matt

Reply all
Reply to author
Forward
0 new messages