Android high-res icons

Previous topic - Next topic

Falstaff

It looks like you can provide a 72x72 icon for one size of Android icon, but it doesn't look very good on my nexus 7. I've gone and used  this tool to generate the necessary folders for the various icon sizes, but I can't seem to get my apk to successfully install if I manually place these folders into my .apk.

Has anyone had any luck with high res android icons?

spacefractal

what is your manifest.xml? its is possible to do that, but took some time to get working (etc the hires icon for OUYA).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Falstaff

I don't think I've made any changes, but here it is:

Code (glbasic) Select

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.catsoupmedia.monstermatchin"
      android:installLocation="preferExternal"
      android:versionCode="5"
      android:versionName="1.1">
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<supports-screens android:resizeable="false"
  android:smallScreens="true"
  android:normalScreens="true"
  android:largeScreens="true"
  android:anyDensity="true" />
    <application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="false">
        <activity android:name="org.libsdl.app.SDLActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
>
<!-- android:screenOrientation="sensor"  android:configChanges="orientation|keyboardHidden" -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>


Falstaff

 <application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="false"> is the only reference to an icon.. Should I have multiple lines for my different icon sizes or something? Or some other format to this to indicate there are multiple folders now instead of 1 single icon file?

spacefractal

Have you tried to delete the bin folder try again? There should not been a icon in res/, but in res/drawable. Glbasic might do that, but is a wrong placement.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Falstaff

I have tried wiping bin and re-building.. do you know what androidmanifest should look like then?

spacefractal

You manifest looks good, howover I'm ran in a similar issue like this and reported that to the glbasic bug forum. Glbasic doesn't create thse icons correctly.

Howover when uses the stock sdk 4 upgrade, then it's seen works (outa accepted the full icon, not the standard one).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

Any work to be done here?

Sent from my GT-N7100 using Tapatalk 4


spacefractal

#8
yes, its require some works. by now glbasic dosent support them and only using the drawable folder.

to support them, those is required to been work in tandem in the Android/res folder:

drawable/icon.png (72x72)
drawable-hdpi/icon.png (72x72)
drawable-ldpi/icon.png (36x36)
drawable-mdpi/icon.png (48x48)
drawable-xhdpi/icon.png (96x96)
drawable-xhdpi/ouya_icon.png (732x412)

Im do believe the above does not working with sdk v2.2 at all, but require a newer sdk (tablet support started from v3.x), another reason the sdk should upgrade to Jelly Bean (which still diddent break a least v2.3 combatible at all).

Its possible to get working in glbasic v11.414, but can been a little bit annoying.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

im have looked into this issue and have created a small blitzmax tool (which im perfer) to create those icons in different size. That tool is automatic inworked as a build stages in glbasic with Android API-14 and API-16 v3 now. Checkout this thread:

http://www.glbasic.com/forum/index.php?topic=9341.0

PS. due im used blitzmax as creating tool, is that just create exe right way and then much easier to test woth glbasic after that. with glbasic you need to move exe around after each compile, which is not very cool for command line apps. With command line apps, glbasic should really just create the exe right!
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/