Library to change Android launcher App Icon and App Name programmatically !

Overview

AppIconNameChanger

Change Android App launcher Icon and App Name programmatically !

AppIconNameChanger - Example1 AppIconNameChanger - Example2 AppIconNameChanger - Example3

Download Demo APK from HERE

Kindly use the following links to use this library:

In build.gradle (Project)

allprojects {
	repositories {
	...
	maven { url "https://jitpack.io" }
	}
}

And then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)

dependencies {
	compile 'com.github.myinnos:AppIconNameChanger:1.0.7'
}

How to use

Step 1: set activity alias in manifest file : #Example

<application
         .........
        
       <!-- main activity-->
       <activity android:name=".MainActivity" />

        <!-- setting activity-alias names-->
        <activity-alias
            android:name="in.myinnos.changeappiconandname.MainActivitySettings"
            android:enabled="true"  //enabled by default launcher
            android:icon="@drawable/ic_settings"  //app icon
            android:label="@string/app_settings"  //app label/name
            android:targetActivity=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity-alias>

        <activity-alias
            android:name="in.myinnos.changeappiconandname.MainActivityCamera"
            android:enabled="false"
            android:icon="@drawable/ic_camera"  //app icon
            android:label="@string/app_camera" //app label/name
            android:targetActivity=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity-alias>

        .........

</application>

Step 2: implement App Icon Name Changer method : #Example

// Active alias name
String activeName = "in.myinnos.changeappiconandname.MainActivitySettings";

// Disable alias names
List<String> disableNames = new ArrayList<String>();
disableNames.add("in.myinnos.changeappiconandname.MainActivityCamera");
disableNames.add("in.myinnos.changeappiconandname.MainActivityMessage");

// Initiate App Icon Name Changer
new AppIconNameChanger.Builder(MainActivity.this)
                .activeName(activeName) // String
                .disableNames(disableNames) // List<String>
                .packageName(BuildConfig.APPLICATION_ID)
                .build()
                .setNow();

IMP Note: To change application launcher icon and the application name should wait for 10 Seconds(MAX) to refresh the launcher.

Any Queries? or Feedback, please let me know by opening a new issue!

Contact

Prabhakar Thota

If you appreciate my work, consider buying me a cup of to keep me recharged 🤘 by PayPal

License

Copyright 2019 MyInnos

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Comments
  • Error type 3 while re-installing app

    Error type 3 while re-installing app

    we used this library and it works great. the issue is when we successfully change the app icon to settings icon then try to re-install app using android studio it gives an error below. Error while executing: am start -n "in.myinnos.changeappiconandname/in.myinnos.changeappiconandname.MainActivity-settings" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=in.myinnos.changeappiconandname/.MainActivity-settings } Error type 3 Error: Activity class {in.myinnos.changeappiconandname/in.myinnos.changeappiconandname.MainActivity-settings} does not exist.

    Error while Launching activity

    opened by Mateeen 5
  • Can you run it in Android Studio 3.1.3?

    Can you run it in Android Studio 3.1.3?

    AAPT2 will show error:

    error: attribute 'android:name' in <activity-alias> tag must be a valid Java class name.
    Message{kind=ERROR, text=error: attribute 'android:name' in <activity-alias> tag must be a valid Java class name., sources=[/Users/hendrawd/AndroidStudioProjects/MyProject/app/build/intermediates/manifests/full/prod/debug/AndroidManifest.xml:59], original message=, tool name=Optional.of(AAPT)}
    

    After change - to _, MainActivity is invisible(no launcher at all), so I can't run the app.

    opened by hendrawd 4
  • Installation error reporting

    Installation error reporting

    Error while executing: am start -n "in.myinnos.changeappiconandname/in.myinnos.changeappiconandname.MainActivity-settings" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=in.myinnos.changeappiconandname/.MainActivity-settings } Error type 3 Error: Activity class {in.myinnos.changeappiconandname/in.myinnos.changeappiconandname.MainActivity-settings} does not exist.

    Error while Launching activity

    opened by lnl1314abm 2
  • Changing component states can make the containing application's behavior unpredictable.

    Changing component states can make the containing application's behavior unpredictable.

    This library might work as a nice POC, but be careful if you happen to use it in production, setting DONT_KILL_APP and changing component states can make the containing application's behavior extremely unpredictable.

    help wanted 
    opened by mradzinski 2
  • [ImgBot] optimizes images

    [ImgBot] optimizes images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 33% 🎉

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /app/src/main/res/drawable/ic_camera.png | 46.40kb | 28.29kb | 39.02% | | /app/src/main/res/drawable/ic_message.png | 41.16kb | 25.22kb | 38.72% | | /app/src/main/res/drawable/ic_settings.png | 45.82kb | 28.45kb | 37.91% | | /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png | 10.24kb | 9.45kb | 7.73% | | /app/src/main/res/mipmap-xxhdpi/ic_launcher.png | 7.54kb | 7.04kb | 6.66% | | /app/src/main/res/mipmap-xhdpi/ic_launcher.png | 4.73kb | 4.46kb | 5.76% | | /app/src/main/res/mipmap-hdpi/ic_launcher.png | 3.34kb | 3.24kb | 2.90% | | /app/src/main/res/mipmap-mdpi/ic_launcher.png | 2.15kb | 2.10kb | 2.40% | | | | | | | Total : | 161.38kb | 108.25kb | 32.92% |


    📝docs | :octocat: repo | 🙋issues | 🏅swag | 🏪marketplace

    opened by imgbot[bot] 0
  • Bug on Android Q

    Bug on Android Q

    When I tested on the Android Q this Flag is not working >> PackageManager.COMPONENT_ENABLED_STATE_DISABLED,PackageManager.DONT_KILL_APP

    The app still Kill when I try to change any Icon on android Q

    **Note I tested on your demo

    Please fixed it

    Thanks

    opened by vikranz 0
Releases(1.0.7)
Owner
Prabhakar Thota
Mobile Engineer[AIML], UI/UX. I believe in the quote which says "Creativity is thinking up new things. Innovation is doing new things." Happy Coding :)
Prabhakar Thota
Let third-party launcher always get themed icon in MIUI (Maybe also works for other Android based OS).

English 简体中文 Introduction This module can let third party launcher always use icons with MIUI/Flyme Themes. It may also work with other custom Android

Strawing 5 Sep 18, 2022
Android library for finding connected devices on same WiFi network. It can provide IP Address, device name, MAC Address and vendor names.

Android WiFi Tools Android library for finding connected devices on the same WiFi network. It can provide IP Addresses, device names, MAC Address and

Tej Magar 5 Nov 16, 2022
A library for Android to get the market name of the device.

GoogleSupportedDevices A library for Android to get the market name of the device. Getting Started Include the library in your build.gradle. implement

David González 7 Dec 4, 2022
The app has got fullscreen Turkey map via Huawei Map. App selects random province and shows it borders on the map than user will try to guess the provinces name.

Il Bil App Introduction I will introduce you to how to implement Account Kit, Map Kit, Game Service. About the game: The app has got fullscreen Turkey

Gökhan YILMAZ 4 Aug 2, 2022
NativeScript empowers you to access native platform APIs from JavaScript directly. Angular, Capacitor, Ionic, React, Svelte, Vue and you name it compatible.

NativeScript empowers you to access native APIs from JavaScript directly. The framework currently provides iOS and Android runtimes for rich mobile de

NativeScript 22k Dec 31, 2022
Messing with Skyblock players in fashion (Sorry @My-Name-Is-Jeff , not enough trolling)

WARPT WARPT is a mod that messes with the average skyblock player's session. You will hate using this mod, as much as I hate skyblock in its current s

Ulypse 2 Dec 21, 2021
Messing with Skyblock players in fashion (Sorry @My-Name-Is-Jeff , not enough trolling)

WART WART is a mod that messes with the average skyblock player's session. You will hate using this mod, as much as I hate skyblock in its current sta

Ulypse 2 Dec 21, 2021
React-native-user-interface - Change React Native userinterface at runtime

react-native-user-interface change RN userinterface at runtime. Installation npm

Ahmed Eid 0 Jan 11, 2022
ArchGuard Scanner for scan Git change history, scan source code by Chapi for Java, TypeScript, Kotlin, Go..、Java bytecode use for JVM languages, scan Jacoco test coverage.

Arch Scanner Requirements: JDK 12 Scanner: scan_git - Git commit history scan scan_jacoco - Jacoco scan scan_bytecode - for JVM languages known issues

ArchGuard 27 Jul 28, 2022
Free and Open Source Launcher.

Omega Launcher Free and Open Source Launcher Installation & Download Our builds are available on: Github: Releases or Actions (usually). F-Droid: Eith

Saul Henriquez 977 Jan 2, 2023
IMCL is a Minecraft launcher which supports Mod managment, game customizing and so on.

IDEA Minecraft Launcher A simple Minecraft launcher 简体中文 日本語 Esperanto Introduction IMCL is a Minecraft launcher which supports Mod managment, game cu

ResetPower 1 Jan 25, 2022
This is an open source launcher project for Android devices that has been built completely from scratch

Description This is an open source launcher project for Android devices that has been built completely from scratch. The main goal of this launcher is

OpenLauncher Team 1.3k Dec 21, 2022
Minimal Android Launcher built with Kotlin.

Minimal Android Launcher A minimal launcher displaying only core apps you really need, with a note widget to quickly add reminders on your home screen

Jolene 0 Sep 10, 2022
Pixel Launcher for everyone!

Flick Launcher Flick Launcher is a project started by Michele Lacorte. I want to create a launcher for google pixels style stock, with a few tweaks. O

Michele Lacorte 284 Dec 20, 2022
Launchy - A custom launcher for our server that installs recommended mods

Launchy Our custom launcher which makes it easier to set up optional mods and in

Mine In Abyss 8 Dec 10, 2022
Force enable gesture for third-party launcher in MIUI.

Fuck MIUI Gesture English Brief Enable this module to allow setting system gesture as nagation when using third party launcher. Strong Mode: Force usi

null 15 Dec 25, 2022
Optimize notification icons for ColorOS and adapt to native notification icon specifications

Optimize notification icons for ColorOS and adapt to native notification icon specifications

Fankesyooni 23 Jan 4, 2023
A monotone line-based icon pack for android

Arcticons (Arctic icons) is a line-based icon pack forked from Frost but rebuild with consistent sizing and adjustments specifically for lines in mind

Donno 413 Jan 2, 2023
Show worldwide headline. API/Glide library/recycler view/volley library/kotlin/xml/ chrome custom tabs

Show worldwide headline. API/Glide library/recycler view/volley library/kotlin/xml/ chrome custom tabs. -> you can click on headline and it will open an article of that news in the app(no need to go to chrome or any browser)

SUMIT KUMAR 5 Nov 28, 2022