Skip to content
oandras.hu
Magyar nyelv
  • Home
  • Blog
  • Web
  • About me
oandras.hu
  • Home
  • Blog
  • Web
  • About me
Magyar nyelv

New default icon pack change request in the NewsFeed Launcher

With the newest NewsFeed Launcher version 20.0.0, third party icon packs now can request to be the selected icon pack.

This can be possible via a similar method as in another launchers.

Example code:

class ExampleActivity extends Activity {

    ...

    private void onApplyIconPackClick() {
        String selfPackageName = getPackageName();

        Intent request = Intent("hu.oandras.newsfeedlauncher.APPLY_ICON_PACK");
        request.setPackage("hu.oandras.newsfeedlauncher");

        ComponentName component = new ComponentName(
            "hu.oandras.newsfeedlauncher",
            "hu.oandras.newsfeedlauncher.customization.ApplyIconPackActivity"
        );
        request.setComponent(component);

        request.putExtra("package", selfPackageName);

        startActivityForResult(request, REQ_CODE);
    }

    ...

}

Posted: 2022.07.14.

Category: android, howto

Tags: icon packs, newsfeed launcher

András Oravecz 2022-07-15 2022-07-14

« Previous

Next »

GitHub
E-mail: info@oandras.hu
Tel.: +36303822495
RSS
© 2010 - 2025 oandras.hu