iconpack-parser-android

Additional

Language
Java
Version
0.0.7 (Jun 1, 2017)
Created
May 18, 2017
Updated
Jul 6, 2017
Owner
sofakingforever
Contributors
nadavfima
sofakingforever
2
Activity
Badge
Generate
Download
Source code

Show card

IconPackParser-Android

An Android Library to parse Icon Packs installed on the device, and fetch their icons.

Download

using Gradle:

repositories {

    maven { url "http://dl.bintray.com/sofakingforever/libraries" }

}

dependencies {
    compile 'com.sofakingforever.libraries:iconpack:0.0.7@aar'
}

Usage Example

with Java:

mIconPackManager = new IconPackManager();

mIconPackManager.loadInstalledIconPacksAsync(getApplicationContext(), new IconPackManager.Listener() {
            @Override
            public void onIconPacksLoaded() {

                mIconPack = mIconPackManager.getInstalledIconPack("com.example.iconpack");

                mIconPack.initAppFilterAsync(true, new IconPack.AppFilterListener() {
                    @Override
                    public void onAppFilterLoaded() {

                        ComponentName component = new ComponentName("com.app.example", ".ExampleActivity");

                        Drawable icon = mIconPack.getDefaultIconForPackage(MainActivity.this, component, true);


                    }

                    @Override
                    public void onLoadingFailed(Exception e) {

                    }
                });


            }
        });

Still on the Todo List

  • Icon Selection Activity
  • IconPack Selection Activity

Used in