Android Question ? AddManifestText( <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17"/>

GMan

Well-Known Member
Licensed User
Longtime User
Hoi,
i have used this part in my manifest:

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.

After changing it to:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.

the icons in the menu didnt appear any longer (generated this way):
B4X:
    Activity.AddMenuItem2("Home","Home",LoadBitmap(File.DirAssets,"home.png"))

In the "old" version the menu button rises max. 6 menu items (with icons).
In the new version a menu list appears as usual, without icons.

Also the screen appears larger than the screen, so i have to declare
B4X:
#IncludeTitle: False
in the module attributes.


Where/what could be/is the problem ?
 

GMan

Well-Known Member
Licensed User
Longtime User
Thx for the hint, but i tried that before:
B4X:
Activity.AddMenuItem3("Home","Home",LoadBitmap(File.DirAssets,"home.png"),False)
and
B4X:
Activity.AddMenuItem3("Home","Home",LoadBitmap(File.DirAssets,"home.png"),True)
with no other result.

Depends it on the size of those icons ?
Now 32x32
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
OK, that works but looks ugly.
Isn't the "old" simples style not longer available with that targetSDK - parameter or on what depends this
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
yes,it looks better - but still wondering why that nice feature gets lost :(
even in "new" styles an icon looks nice in a menue and replaces often (if international then additional changing is needed) text or explanations.

and whats about the size changing of the screen - "new" the action bar is larger in heigth.
can i change that to less heigth ? :rolleyes:
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
any additional lib available for that (feature) ?
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
i just want to have the menuicons again (if 5 or 6 doesnt matter) when i click the menu button on the device :D
 
Last edited:
Upvote 0
Top