App logo is not changing in android lollipop 5.0.2 version - android

The app logo on updating the app is not changing for my Moto G 1st Generation phone. Also I've two apps as "Google Photos". Don't know what to do with that??
Help!

Try to clean the Project by going to
1.Eclipse->Project->Clean it will rebuild the .apk file.
Make sure that both 'Google Photos' apps should have different package name as well.
In the resource folder the image files should have name in lowercase only, or else the XML will not able to get it, eg; file name Should not be like this Image.png, it should be image.png.

Possible that you have different drawables for ic_launcher or logo in your hdpi/xhdpi/xxhdpi folders.

Related

NativeScript 8.0.4 Android App Icon WILL NOT Change from default

I'm tearing my hair out over here. I've developed applications with earlier versions of nativescript and this has never been issue... This is my last effort before I just downgrade to an older version
I have ran the command tns resources generate icons ../icon.png and it claims to have successfully generated the icons and I can see them in the directory... build and deployed to phone. Still has the default nativescript icon
I went to App_Resources/Android/src/main/res and manually updated the ic_launcher.png file in every mipmap directory... build and deployed to phone, same result! Default icon
Tried deleting the platform/android directory and rebuilding. No luck
I searched from the root directory and I cannot figure out how the heck this default icon is appearing still!!!
Note: I was able to change the splash screen
Any help... please, thank you
I ended up solving this issue eventually, so for anyone this might help in the future... In the newer versions of NativeScript there is now a new folder in res called "mipmap-anydpi-v26" which uses vector graphics. If your on SDK 26+ it will automatically use this vector graphic and IGNORE every other PNG icon in all the other folders.
Your options to remedy this are either:
A) Delete this folder from the directory, which will force it to fall back to the regular PNG icon that's appropriate for the device resolution
B) Edit the file in the folder and update the SVG to use yours
I had a similar issue on nativescript 8.1.1, nativescript/android 8.1.1 with svelte 3.44.0. After running ns resources generate icons <icon-path> and ns resources generate splashes <splash-path>as show in this stack post here. Only the splashes were generated successfully. However the icons didn't work as described, hence I had to generate my app launcher icons using this service. Then I downloaded the zip file, unzipped it and copied the contents of the 'res' directory in the unzipped file to <project-directory>/App_Resources/Android/src/main/res to replace all the directories with the same names (i.e. mipmap-anydpi-v26, mipmap-hdpi etc). Then rebuilt and reran my application and everything worked fine.
Since 8.x Nativescript ships with the adaptive icons - since the old icons are outdated on more recent android phones, and usually look weird
1.Open a project in Android Studio and in the Project Explorer pane right-click on the app directory or any of the directories inside the app directory. In the context menu that opens select New > Image Asset
2.Once Asset Studio opens you'll see the new default app icon
3.The main thing to know about adaptive icons is that there are two layers, a foreground and background. The default foreground will be titled ic_launcher_foreground.xml and it is an SVG. Go ahead and click the ... button next to the path (image below) and select your app icon that you're going to use.
4.Now you can go ahead and set the other settings for your icon such as trim and the resize percentage. You'll also be able to change the default green background layer, select the Background Layer tab and you can repeat the same process. From experience, in a lot of cases you can use the Color radio button to set the color you'd like to use for your background layer.
5.Once you are finished with your icon configuration you can complete the wizard which will generate the various resources needed for your app. The new files will be located under the android app directory in src/main/res/ where you should see several mipmap- directories.
6.Now move all the files in mipmap- directories to your Nativescript's App_Resources mipmap folder
7.Once you have copied over the newly created icon files to the NativeScript project there is one final change you need for your application. The only change is to set the android:icon value to #mipmap/ic_launcher which is the resource location of the new files we added from the Android project from Android Studio.
Hope this helps to solve your issue
I always use NativeScript Sidekick to generate my icons. I don't know if that will yield different results from the tns command, but at least it's something else to try.

How I fix NOTHING TO SHOW in my vector asset in android studio

I want to add a new vector asset. I am trying to add a clipArt but it only shows in the dialog box "Nothing to show". No icon is showing and I want to add an icon. I don't know to fix this. Please help. I am still trying to learn android studio and I am practicing on how to use it.
For myself, my asset dialog only shows some of these icons. And here is my solution.
Go to
[SdkPath]/icons/material
There should be a file called icons_metadata.txt, and folders
materialicons
materialiconsoutlined
materialiconsround
materialiconssharp
materialiconstwotone
For each icon, there will be one folder in the folders above. For example, we have materialicons/share, materialiconsoutlined/share and so on.
These icon folders are not complete, only icons starting with digits exist. Since the folder only updated when "Select Icon" dialog is opening, I opened "Select Icon" dialog again, waiting for all icons are downloaded, and then reopen the dialog.
Then my problem is solved.
This a new problem introduced in the latest version of Android Studio 4.1.
This happens when your windows user name folder contains a space. Rename your user name’s folder removing the space and it will work again.
For some reason the space make the folder where the icons are located not visible to Android Studio.
If there are already this folders and still nothing in dialog try deleting <sdk>/icons/material/icons_metadata.txt
Credit to
#MainActivity
Those clip arts are located in "icons" folder inside your sdk folder on your hard drive and the sdk folder is generally this:
C:\Users\ --username-- \AppData\Local\Android\Sdk
I guess android studio cannot access the right sdk location so make sure the sdk location in your "File/Project Structure/SDK Location" matches the actual sdk location on your hard drive.
Alternatively, you can download the clip art you need from this link: Android Material and import them by choosing Local file in your Asset Studio.
In Android Studio 4.1.1 this issue is resolved. Update if possible.
It's working
Your SDK folder name must be spaced less, ex- (UTTAM, UttamSdk, Uttam_sdk)
HAPPY CODING :)
Same thing happened with me, also i was not able to change my user name because of Win 10 Single Lang. so i just moved my SDK folder to another path but there was not space between the path like from >> C:\Users\User Name\AppData\Local\Android\Sdk to >> C:\Users\Sdk.

Where does Asset Studio store the Google Play Store icon?

I run Android Studio 3.2.1 with all updates. I generate all icons from an SVG master artwork, so resolution is not an issue.
All icons get generated and stored into \res\mipmap as the previews have shown inside Asset Studio. I can also see my Google Play Store icon, rather huge next to all the other sizes in the preview.
But after the actual generation, I cannot find the Play Store Icon. The online documentation here
https://developer.android.com/studio/write/image-asset-studio?utm_source=android-studio
does not mention the location of the extra icons.
Sorry if this is trivial.
Bonus question: If generated this way inside the Android Studio, will the package include the Store Icon, or do I need to upload it manually in the Store Console like before?
The play store icon ic_launcher-web.png is stored in the main folder of the module. In Android Studio, you can see it underneath the file AndroidManifest.xml.
I had to exit from Android Studio and go through the Windows directory system in order to see the Play Store image :)

how to get google play to mark unity game as designed for tablets?

i'm trying to publish my unity game on google play and i cant find an answer to this error anywhere. when i upload a 10" screenshot google play says "You uploaded screenshots for 10-inch tablets, but your APK does not seem to be designed for 10-inch tablets." when i click learn more it says "Your APK should include custom drawables assets for common tablet screen densities."
there may be a lot of answers to similar questions but i haven't been able to find an answer for the error "Your APK should include custom drawables assets for common tablet screen densities." i could be wrong but i was under the impression Unity took care of this aspect.
What do i need to do differently to fix this issue so my games is listed as "designed for tablets"? my game works and can be download on tablets... but says its not designed for them?
I solved this problem with just simple trick.
You can just check on "Include android banner" option in player setting for android build and select any image for android banner. Then unity will automatically generate res/drawable-xhdpi folder with that banner image included.
You have to just check this option on and select any image you want
here is example image
I was running into this same issue and found a solution that worked for me. Unity apparently fails to create a folder required to correctly process the APK, namely a 'drawable-xhdpi' folder that's supposed to contain a 320px by 180px image inside of the res/ folder.
Found this answer because I happen to be working on two apps at the same time — the first app was exporting without any issues, whereas the second app encountered the problem you've described.
Using Unity 2018.3.0f2, I exported the first app and the second app using Gradle via the Build Settings dialogue.
Here's a screenshot of the res/ folder from the first (working) app:
Image of res/ folder from project with all necessary folders
Here's a screenshot of the res/ folder from the second (broken) app:
Image of res/ folder from project missing one crucial folder, drawable-xhdpi
Notice how the 2nd app is missing the 'drawable-xhdpi' folder.
So I fixed this by taking the 2nd app exported project into Android Studio, manually adding the missing folder and image asset, then exporting as normal. After uploading to the Google Play Developer Console, voila! No error.
Hope this helps :-)

Android app is displaying an old image that was replaced

I am adding some icons from the drawables folder to a layout. I had an image that I replaced which got the same name as the old one. I have overridden the file, rebuilt the project and the Android Studio's graphical layout showed the new icon. However, when I ran the app, the old icon appeared. I went over all the drawables folders to see if there might be one with the old icon, but it was replaced in every folder. I also tried reinstalling the app and it's still showing the wrong icon.
Why won't the app show the correct icon?
May be due to some bug of Android Studio, Try it out it will work :
Delete .apk from local path manually (Path : \YourProjectFolder\app\build\outputs\apk\app-debug.apk)
then Rebuild Project and finally Run it.
Because of instant run feature,
Once your app is installed, Instant Run allows you to push code changes without building a new APK
new apk is not creating. Try after deleting apk file from path ...\apk\app-debug.apk
Then build and generate apk again.
Rebuild Your Project then it works fine
Delete your icon from the drawables folder, set another image in the application instead of the deleted one, run the application, close the application, add your image again in the drawables folder, add it on your control and run again. It should work now.
What eventually happened is that the images were replaced in a library module, while the app module also contained the old image. Since the app resources overrides the library's resources, the old image was shown.

Categories

Resources