(dev) Tutorial: Supporting multiple icons in your app
Posted on 2013-02-21, 4 comments, 65 +1's, imported from Google+/Chainfire

NOTICE: This content was originally posted to Google+, then imported here. Some formatting may be lost, links may be dead, and images may be missing.

As requested by many, here is a tutorial explaining how I built support for multiple icons into SuperSU. It's really quite simple once you understand how it was done ;)

It's too long for a G+ post, so I put it on my blog. Enjoy!


chainfire[dev~blog] - [TUT] Supporting multiple icons in your app

+165
Kiran Rao commented on 2013-02-21 at 06:00:

+Chainfire Great article! I have a use-case where I need to provide the user an option to change the "default mode" of my app. This effectively means changing the Launcher Activity so that the next time the user launches my app, a different Activity is launched. I was considering using the "normal" approach (create an intermediate no-UI Activity as the Launcher Activity  - this in turn starts the appropriate Activity based on user settings).

However, after reading your article, I am going to experiment with setComponentEnabledSetting for this use case.

Mike N commented on 2013-02-21 at 11:27:

Love it, thanks mate, will be really useful.

冥凯特 commented on 2013-02-21 at 14:40:

thanks!

Daniel Lopez commented on 2013-02-21 at 20:49:

Hey I wanted to use SuperSu to install but the new 4.2.2 but couldnt figure it out can you direct me to a tutorial or something?

This post is over a month old, commenting has been disabled.