When I run my application, it's automatically create a droid-bot picture on surface of application. So, I want to change a picture, what should I do?
(1) create a PNG image (say icon.png) and save it in the folder:
res/drawable
(2) Then, in AndroidManifest.xml of your application add the icon tag in your application:
android:icon=”#drawable/icon”
e.g.
<application android:name ="yourAppMgr" android:icon="#drawable/icon"
//... >
AFAIK you can't change the icon of installed application with some completely custom one, but you can add application shortcut with custom image to the home screen from your application.
Related
I have replaced the standard android studio app icon (ic_launcher) with my own(one for each dimension in the mipmap folders) and deleted the ic_launcher round icons since i won't be using round icons on my app. The problem is that although the icons show up correctly in the res->mipmap->ic_launcher folder, when i install the app on my phone the app's icon is the default one and not the one i chose. Also, if you go into tje phone's app info, the app's icon shows up correctly. I have no clue on why this is happening. Any idea?
Go to manifest and look for roundicon and dont forget to change there.
Go to manifest and replace default icon name with yours here:
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
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.
I have my own application. And I need to make a function in my app, which will create my own icon in android launcher to some activity in this application. How can I do it? Thanks for your help.
P.S. I don't need to EDIT my current icon, I need to CREATE NEW icon with some params to my app (like intent), icon should have my own picture and text.
It's should work like chrome function "Add to home screen" which can add a website to your launcher.
you can change app icon in manifest
android:icon="#drawable/your_icon_image"
Add your icon to mipmap folder, then inside your manifest add this value inside application tag :
<application
...
android:icon="#mipmap/ic_launcher"
tools:replace="android:icon">
Also it's not recomanded to put it inside drawable folder, make sure it's inside mipmap folder.
I am trying to understand how to change background image of an application (not via eclipse) using any file explorer in android(phone) and picking any file.png which will be saved as a background image in the app
Following the comments above:
Well, the only thing I can think of (if I understand this correctly, you want to change the background of an application, via another application - right?) is to set the background to Theme.Wallpaper. Then in that other application, you can set the background differently and in the base application, the BG will be changed accordingly.
Asuming - pick the file explorer, navigate to the .jpg, .png etc. file and you set it to be your device's background. If your application uses Theme.Wallpaper as the default application Theme, then it will be changed, according to the background image you've set to the device.
In simpler terms:
1. Problem - You want to change the background of your application (YApp for short), but you want to achieve this by choosing a picture from another application (let's say a Gallery).
2. Solution - the only thing I can think of is to set this desired image as a background to the device itself. Then in YApp you'll have Theme.Wallpaper set, which will use the device's background
To put this with code, here's a sample extraction from the AndroidManifest:
<activity android:name="MainActivity" android:theme="#style/Theme.Translucent">
</activity>
This could be applied to any activity. Here's the link for reference.
Cheers
How to Change the default Application image in android??we want to distinguish our application to other android application.so we i want to change the default android application image to sepate image.
how this can be done?anyone pls help me?
Put an image in your project and reference it in your androidmanifest.xml file with
android:icon="#drawable/icon"
in the <application> part
Random reference with a tiny bit more detail: http://www.connorgarvey.com/blog/?p=97
(a bit offtopic, but this is a great page from the dev-guide for making icons: http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html )