Change App Icon And Name From Outside - android

Is there any way that set the application Icon and Name from an external resource such as an image which embedded inside the assets/ folder in the project?
Or is there any way that let us set icon and name of app without using AndroidManifest.xml file?

Is there any way that set the application Icon and Name from an external resource such as an image which embedded inside the assets/ folder in the project?
No.
Or is there any way that let us set icon and name of app without using AndroidManifest.xml file?
No.
For your activities, you can override the title and/or icon used in the action bar or title bar, if that is your actual objective. However, you cannot change the values used for things like the home screen launcher icon or your app's entry in the application list in Settings.

No it is not possible . You should send an update and things would change in accordance with AndroidManifest.xml .
So what I will suggest is, to send an update

I found the answer. by Using APKtool

Related

How to set up drawable resource folders for Xamarin Android app in Rider IDE

I'm brand new both to Xamarin and the Rider IDE, but not to Android. I'm going through some test projects, but when I make a new project, the ProjectName/Resources folder is missing things that I would expect to be there, most notably drawable. How can I create or get access to those directories so that I can do something like set the app icon?
I've tried creating a drawable directory, including it, and making sure that the build action is set to AndroidResource, but when I add Icon = #drawable/icon.png in the MainActivity, it doesn't recognize the drawable tag.
I found a solution for this. As I mentioned, I created the drawable folder manually, added the icon to it and made sure to right click and Include it. Then, in the manifest, I added android:icon="#drawable/icon and that got the icon to show up properly. So it didn't fix the issue of the folders not being generated, but at least for a simple task like updating the icon, it worked.
You can also declare in xaml.cs file, in your xaml form constructor the following:
x:Name_of_your_image/icon.ImageSource = (FileImageSource) ImageSource.FromFile("image/icon_name");
This way you won't need the drawable folders, as it will automatically provide the source of the image.

Change Launcher icon on android

How to change launcher icon of android app during run time?
I am getting icon from server and want to change it dynamically.
In shortcut icon its working but menu icon is not changing.
This may be a duplicate question:
Basically it should be impossible but there is a possible workaround. You can change your manifest to point at multiple drawables.
Create multiple activity-alias tags in Manifest for your MAIN
launcher activity and give a different icon drawable to it. You can
then choose a particular activity-alias via your code as per your
requirement.
Open your android studio as an android application go to res folder inside res folder one folder mipmap. Inside mipmap two folders are showing ic_launcher and ic_launcher_round. Replace with your desired icon of your application and rename your desired icon as ic_launcher.png.
Path=Android project>res>mipmap>ic_launcher and ic_launcher_round > put/replace your desired icon in both folder after renaming abc.png to ic_launcher.png and abc.png to ic_launcher_round.png. You can find the location from manifest file from the mentioned line> android:icon="#mipmap/ic_launcher" . Press ctrl+(mouse click) you will reach to same location. Change your desired icon and enjoy.

Trying to add multiple icons to android app

This is the folder with all the icon files
Now in my manifest, I'm not sure how to go about adding these icons.
android:icon="#drawable/"
Not sure what to put =/
I've tried putting #drawable/ic_mood_black_48dp and it still doesn't work
Put
android:icon="#drawable/ic_mood_black_48dp"
Those folders are for different resolution screens, and the appropriate png will be automatically shown based on device resolution. The name remains same for all of them, so this should be enough.
Android Studio should autocomplete your typing in the manifest as you type it:
android:icon="#drawable/ic_mood_black_48dp"
I had to move all the drawable folders outside of the folder 'drawable'.

I want to let the user define the name of my app

I have app and i want the user to name it i want to give him some names and let him choose the name he want as app_name
how to do it ?
The app's title stated in the manifest and cannot be changed during runtime. Android does not permit this.
You can, however, change the title of the app in the title bar via setTitle(name);
But the icon you can change:
https://stackoverflow.com/a/19593601/2413972

how can i set the application icon programmatically android

I know that we can set it through manifest file using android:icon attribute.But how can we set it in java code?
It doesn't make sense to set it programmatically, the launcher has to display the application icon when the application isn't active.
If you take a look at How to change an application icon programmatically in Android?, you will find a comment, which links to this sample code in the Android developer API demos: LaucherShortcuts.
It seams that the Activity can create a LauncherShortcut, which can have a different icon (see function setupShortcut()). If you want the user to select the Icon, you have to display a list of icons when creating the shortcut. But again, it is a shortcut. In the list of application the original icon appears.
I dont think the launcher icon can be set programatically.

Categories

Resources