How to use custom icon in Set Taker Icon action?

1,993 views
Skip to first unread message

Clayton Nummer

unread,
Jul 18, 2012, 1:05:50 PM7/18/12
to tas...@googlegroups.com
I just updated to 1.3, and read through the changelog. The thing that stood out most to me is the new Set Tasker Icon action. It works perfectly with the built in Tasker icons, but when I attempt to use a custom icon it defaults to a standard one instead. I've tried everything I could think of in terms of syntax for the path (file://storage/sdcard0/Tasker/.icn/My Icons/ICON.png, file://storage/sdcard0/ICON.png, /sdcard/ICON.png, etc.) Can you please provide the correct syntax to use for the path to a custom icon? Additionally, I do not know if a PNG file is even a compatible format for use in notifications. If it isn't, please provide the correct format (.ico maybe?) These may be good things to include in the userguide ;)

Thank you very much!

Clayton

Pent

unread,
Jul 18, 2012, 2:39:30 PM7/18/12
to Tasker
> I just updated to 1.3, and read through the changelog. The thing that stood
> out most to me is the new Set Tasker Icon action. It works perfectly with
> the built in Tasker icons, but when I attempt to use a custom icon

Sorry, you're not supposed to be able to use a non-built-in icon, that
button to enter an image URI shouldn't be there, I'll take it out.

Android doesn't allow icons in that notification that don't come with
the APK.

Pent

Clayton Nummer

unread,
Jul 18, 2012, 3:08:27 PM7/18/12
to tas...@googlegroups.com
On Wednesday, July 18, 2012 2:39:30 PM UTC-4, Pent wrote:
Sorry, you're not supposed to be able to use a non-built-in icon, that
button to enter an image URI shouldn't be there, I'll take it out.

Android doesn't allow icons in that notification that don't come with
the APK.

Pent

Ah, I see. That makes sense why I couldn't get it working. That's a major bummer though. Would it allow using an icon from a different app or something like that? I still use EasyProfiles on my tablet in conjunction with Tasker (EasyProfiles allows for changing to live wallpaper), and EasyProfiles allows for using custom icons in the notification. It would be really great if you could implement live wallpaper switching and custom notification icons so I could exclusively use Tasker.

James Knott

unread,
Jul 18, 2012, 3:14:51 PM7/18/12
to tas...@googlegroups.com
Here here

James Knott

unread,
Jul 18, 2012, 4:06:28 PM7/18/12
to tas...@googlegroups.com
Actually how can EasyProfiles use 'user icons' in notifications but Tasker can't?

Pent

unread,
Jul 19, 2012, 5:12:33 AM7/19/12
to Tasker
> Actually how can EasyProfiles use 'user icons' in notifications but Tasker can't?

What's a 'user icon' ? Off the SD card ?

Pent

Nixx

unread,
Jul 19, 2012, 7:07:38 AM7/19/12
to tas...@googlegroups.com
Since it's is related to this topic:

Apart from exchanging icons dynamically, should it be possible to use a self-made icon in a notify-task in tasker that is exported in a kid?

When I try to set the icon for the notify-task my icon-set doesn't show up.

But when I try to set an image in the task-edit window my icon set does show up.

the icons are in the right folder (Tasker/.icn/Name) and are 128px .png's

Pent

unread,
Jul 19, 2012, 7:25:08 AM7/19/12
to Tasker
> should it be possible to use a
> self-made icon in a notify-task in tasker that is exported in a kid?

Yes, because it's converted to a builtin icon in the kid, but you
can't select such an icon in the Tasker UI to be able to do that.

Pent

Nixx

unread,
Jul 19, 2012, 7:28:33 AM7/19/12
to tas...@googlegroups.com

mmh, so the only way to do it to replace the icon in the kids.apk file

RudeboyX

unread,
Jul 19, 2012, 7:29:07 AM7/19/12
to tas...@googlegroups.com
If android really does alow for custome icons in the status bar and live wallpaper switching, then I beg of you Pent please add these to tasker. I've been wanting a way to revert to a live wallpaper for some time now.

quick note.

when selecting an icon for a notification triggered by tasker, I can choose from built-in icons or icons from my Ipacks. However, when selecting the tasker icon, I can only choose from the built in icons. Even if its not possible to use Images from the SD card, surley I should be able to use icons from my Ipack's for the tasker icon?

PS nice one on the release of 1.3. I'm downloading as I write. can't wait to try the app factory also.

RBX

Pent

unread,
Jul 19, 2012, 7:39:29 AM7/19/12
to Tasker
> when selecting an icon for a notification triggered by tasker, I can choose
> from built-in icons or icons from my Ipacks. However, when selecting the
> tasker icon, I can only choose from the built in icons. Even if its not
> possible to use Images from the SD card, surley I should be able to use
> icons from my Ipack's for the tasker icon?

Ipack icons are in a different apk, not the Tasker apk. With a Notify
action using an Ipack icon, it's actually the Ipack making the
notification, not Tasker. Can't do that for the permanent service
notification.

Pent

RudeboyX

unread,
Jul 19, 2012, 9:16:22 AM7/19/12
to tas...@googlegroups.com
Agh.. makes a little more sence.

I've just been looking into the above mentioned "EasyProfiles" and noticed that the live wallpaper switcher is for rooted devices only. So probably a feature best suited to the "secure settings" plugin.

RBX

Kab89

unread,
Jul 20, 2012, 9:57:04 AM7/20/12
to tas...@googlegroups.com
So the only way is to replace an icon, is this done with apk tool? Where is the location of the stuff to replace? Any help would be greatly appreciated thanks

Pent

unread,
Jul 20, 2012, 10:05:54 AM7/20/12
to Tasker
> So the only way is to replace an icon, is this done with apk tool?

Unless you are happy with the builtin icons.

> Where is the location of the stuff to replace? Any help would be greatly appreciated thanks

res/values/drawable-hdpi/icon_tasker.png
res/values/drawables/icon_tasker.png

Pent

Clayton Nummer

unread,
Jul 22, 2012, 4:33:37 PM7/22/12
to tas...@googlegroups.com
I tried a bunch of stuff to accomplish this, but I have been unsuccessful so far. I first attempted to use zipthemer but that didn't get me anywhere, then I decompiled the APK, added my pngs using the same naming convention as the existing icons and recompiled/signed but after installation the additional icons still don't appear in the list of ones to use in Tasker. Do I need to modify a XML too?

One thing, I don't see a values folder inside of res. I found all of the icons in res/drawable, which is where I attempted to add the additional ones I want.

Marnix Reckman

unread,
Jul 22, 2012, 4:42:00 PM7/22/12
to tas...@googlegroups.com
This will only work if you replace the ones you use already (remove the existing ones and rename your new ones to their names.)
You can't get it back into tasker, but are able this way to use it in final app
(haven't tried yet myself, but the theory is sound ;) )

Pent

unread,
Jul 23, 2012, 3:27:08 AM7/23/12
to Tasker
> This will only work if you replace the ones you use already (remove the
> existing ones and rename your new ones to their names.)

Yes, you can't just add icons since Tasker's dialog for selecting
builtin icons has a fixed list of icons to display. You need to
replace an existing one.

Pent

kalhimeo

unread,
Sep 18, 2012, 8:35:36 PM9/18/12
to tas...@googlegroups.com
it would be great if you could add a built-in set of icons for tasker which could be used as "profile" icons like 'airplane', 'silence', 'car', 'charging, 'sleep', etc

Probably many of us use tasker for profiles :)

Pent

unread,
Sep 19, 2012, 1:58:00 AM9/19/12
to Tasker
> it would be great if you could add a built-in set of icons for tasker which
> could be used as "profile" icons like 'airplane', 'silence', 'car',
> 'charging, 'sleep', etc

There are many such icons in the Ipack icon packs I think.

Pent

kalhimeo

unread,
Sep 19, 2012, 6:57:43 AM9/19/12
to tas...@googlegroups.com
I am sorry but I disagree with you :p There is no proper "set" of icons matching general profiles. Some icons are big with colors, some are small white, some are grey, etc. This is not useful nor nice for an intuitive profile icon set.

I think that a proper icon set looks more like this: https://lh6.ggpht.com/7PPmaqxcw-Lvc6HscdJl2mctXvhuqxjlxpB1gHZG-AIovGvL92vcHZDqOUZVAhF3FXN8 (example from Phone Weaver)

Just my 2 cents ;-)

RudeboyX

unread,
Sep 19, 2012, 7:42:20 AM9/19/12
to tas...@googlegroups.com
Pent was refering to Ipacks, not Taskers built in icons.

I agree that the built in Icons within tasker are pants. (different sizes, colurs, styles, etc) but there are more than enogh Ipacks available in different styles to satisfy the majority of people. If your not satisfied, you could do what I did and use apktool to change all the icons in an Ipack.apk. then install the Ipack.apk and tasker can utilise all you new icons from the modified Ipack. I would have made my own Ipack but the instructions etc were beyond me at the time and probably still are.

Download Ipacks from here - http://ipack.dinglisch.net/download.html (can be used anywhere in tasker except taskers own icon)
DO NOT USE - http://tasker.wikidot.com/icon-index as these are only zip files containing images (can't use these for notifications etc)

Regards
RBX

baudi

unread,
Sep 19, 2012, 10:01:41 AM9/19/12
to tas...@googlegroups.com
Those links point to the same page.

RudeboyX

unread,
Sep 19, 2012, 10:36:03 AM9/19/12
to tas...@googlegroups.com
Strange, both do happen to link to the same page for some reason. luckily it turned out that they both link to the prefered page.

if you copy the url and paste it into a browser it works.

RBX

kalhimeo

unread,
Sep 19, 2012, 4:28:03 PM9/19/12
to tas...@googlegroups.com
I would agree with you if it was possible to use Ipacks icons for the Tasker Icon (see topic "Set Tasker Icon" action), unfortunately it is not and only tasker builtin icons can be used there as explained a few posts above :p

Pent

unread,
Sep 20, 2012, 2:11:14 AM9/20/12
to Tasker
> I would agree with you if it was possible to use Ipacks icons for the
> Tasker Icon (see topic "Set Tasker Icon" action), unfortunately it is not
> and only tasker builtin icons can be used there as explained a few posts
> above :p

Sorry, I missed that as well hence my reference to Ipacks :-)

I agree it would be nice to have loads of icons builtin, but I find
the APK
size increase inacceptable currently.

As an alternative, you can set the Tasker icon transparent (or disable
Menu / More / Run In Foreground)
and use your own permanent notification (which will then allow you to
use ipacks).

Pent

kalhimeo

unread,
Sep 20, 2012, 8:27:18 AM9/20/12
to tas...@googlegroups.com
That's exactly what I am doing now, but you know the "Set Tasker Icon" would really become useful with a proper set of builtin icons :-) (or if you find a way to use ipacks for it).

Maybe replace a few existing icons which are not very useful by a proper "set" for basic profiles ? The apk size could then be maintained :p

It's just a suggestion of course, I can live without that, I just thought it may be an easy addition/change.

Best regards,
Laurent

Clayton Nummer

unread,
Oct 31, 2012, 9:58:07 PM10/31/12
to tas...@googlegroups.com
Okay, so I want to update because I finally got a solution that is working perfectly for me. I have Tasker set to run in foreground and I didn't want double notifications, so the notify action wasn't an option. I tried changing images directly within Tasker, but it broke things. I tried this months ago, so I don't remember exactly, but I think it broke all profile triggers - so it was pretty unusable. I think I decompiled and recompiled rather than simply extracting and zipping so maybe it had something to do with being resigned, so perhaps someone could try extracting and rezipping instead. The problem with this method (if it can be done correctly) is that it would have to be redone any time Tasker is updated. 

Now to the good stuff...the ROM I run has Theme Chooser...I simply included the icons I want to use in Tasker as part of my theme and voila! I have the icons I want looking perfectly, and I wont have to change anything if Tasker is updated (unless Pent changes certain things specific to the icons, of course). 

Anyways, for those who know how, this is a perfect solution.
Reply all
Reply to author
Forward
0 new messages