What does the ic_launcher-web.png in my project root do? - android

Unbelievably enough, I couldn't find an answer when Googling for this very basic question!
I noticed that since I upgraded from Eclipse Helios to Eclipse Juno and updated the Android SDK, Eclipse places a file called ic_launcher-web.png in the project root whenever I create a new Android project. The file is the same as the application icon selected in the project creation dialog, but what does it do? As mentioned, it's in the project root, not in any of the /res/ folders. So is it included in the finished .apk file, and what is it's purpose?

It's for the Play Store, which accepts 512x512 high-resolution icons:
High Resolution Application Icon (Required):
Use: In various locations in Google Play.
Specs: 512x512, 32-bit PNG with alpha; Max size of 1024KB.
-- Google Support
(A more tutorial like explanation can be found here.)
It is not used in your actual app or the launcher, so it is not packaged in the APK.

This is the icon for the google play store. You need to provide a 512 x 512 icon.

There is a little bit of an explanation here on this page:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size

If you keep this file make sure to change it to duplicate your regular launcher file. You manually add the regular launcher file to the play site when submitting your project anyway so the extra web launcher file may not be needed. My first project never had one.

Related

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 :-)

what font within Android is closest to this image?

I have seen the below font used within several android applications, including Clean Master etc. What free font is closest to this image and how can I make use of it within Android? Thanks
The closest (most similar) font I could find was: Roboto
I dnt know what 'Clean Master' app you have there cause on play store there are tons of apps named so .Maybe you give me exact package name .And I can tell you what font they use.
Any way the idea is you to download the apk file from play store and open it with winrar or something and look into the assets folder , cause there ppls put the fonts most of the times and then they load fonts in app.
You can use this link to download apk's from google play.
http://apps.evozi.com/apk-downloader/?id=com.cleanmaster.mguard
I just downlaoded this and I see in apk's asset folder 6 font files. You can download yourself and see it
*UPDATE
They use this fonts in the apk : Spoon Number , Icomoon and Miso Unit .
you can download them from the link i give you
The font on the right of the image is likely to be Roboto but the large numbers are not. Have you tried using an identification tool such as: https://www.myfonts.com/WhatTheFont/ which allows you to upload an image. Failing that you could chance your luck emailing the developer of the app where you have seen it used.

Is there a way to add such folder in Android project that do no get compiled up to **apk**

I was looking for a way to add some such folder in my Android Project that do no get compiled up to my apk file.
Why I need it :-
We need to maintain proper documentation for project (that actually
everybody needs to ;) nothing new),
but I find it very irritating to look out for that documentation
folder again and again.
.
I am open for any way i can make dcocumentain folder easily one
click accessible (I am already doing it thru taskbar sortcut. ) But
I want it to get the ease of version control thru Eclipse likewise we
do it for our project
IDE :- Eclipse
I got a way myself :-
I had an idea that if I create a folder in my application project with
some anonymous name that actually android has not listed in its
directories ("I am talking about the default one like "res", "src",
"anim"......)
Then either it should "raise an error" or should "ignore" it while compiling to form apk file
luckily it ignores any such folder. now i can put all the documentation in my project.
NOTE:-
My answer empirically driven
I had tested it by creating a "Docs" folder and then copied 1 GB of
random data (includes almost all type of files we came across from
multimedia to zipped ones).
Then I build the apk and the size of the apk was in-effective of all
this..
but when i copied the same data to assets it was showing a huge change
in size of my apk file..
Consider using Javadoc in addition or, if possible, instead of any other documentation.

Change Android app icons in APK?

Is it possible to change the app icon in an APK in Android apps? I have a tablet running Android 2.2 and the icons are too low-res, so I want to replace them. I tried unzipping the APK, changing the icon and re-zipping, but it didn't work. Is there any way I can change the icon, even programmatically, to reflect the higher-res icon?
APK files are actually nothing more than zip files. If you just want to replace images, then the easiest way is to open the apk file in 7-zip or winrar and replace the png files in there with your own. Just drag your new files to the 7-zip window.
Note that I said "open" and not "unzip". Once you decompress it, the signature will no longer be valid.
Another option is to use APKManager to do it. This way you do not need to install it in /system/app:
Download APK Manager
Put the .apk in "place-apk-here-for-modding"
Run the script.bat and extract it.
Drop the new PNG files in /res/drawable-?dpi overwriting the old ones.
Run ZIP .apk and select option 2 Regular APK
Sign the APK
Install
Summary
One the simplest ways is to change APK icons via user-friendly GUI tools:
APK Editor Studio – advanced but still easy-to-use APK editor.
APK Icon Editor – plain and simple APK editor.
Both tools are free and open-source (written in C++/Qt) with the Apktool used under the hood.
Features
Automatically pack, sign and optimize your APK.
Automatic conversion between PNG, BMP, JPEG, ICO, GIF, etc.
Available for Windows, macOS and Linux.
Disclaimer
I am the author of these tools.
If you want change android application icon programatically then you can set it into AndroidManifest.xml file, in the application tag by setting the android:icon property. But if you want to change the icon of third party applications then you cant.
See this solution
Please have a look at this one for designing icons for high, medium and low density phones:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html

Categories

Resources