Android Question Super strange phenomena

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Hi

After compiling with sdk 36 {maybe not related) the back operation just take the app out not back
Is it me missing some thing or...
Until a moment ago with previous sdk 35 it was all working fine

Any ideas?
 

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Thanks
Are you sure?
As google wants to update to latest
I don't want google kick my...
But I'll follow your advice

Do you think the back button issue caused from 36?
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Stick to SDK 35 for now. It's the recommended for Google play and for B4A 13.4
one more tiny issue - just change the target in manifest to 35 ?
or anything else?
as the previous platform in platforms is 34 from last version
and now after the latest update i got 36
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Yes, just change the target in manifest to 35
Yes, that worked.

Now another issue:
Some of us use the bottom 3 buttons and some use the swipe option
Is there a way to check if the bottom line of buttons is shown or not?
So i can change my display accordingly
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Just make sure you are using the Edge to Edge workaround with the targetsdk 35 and everything will work fine.

 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Just make sure you are using the Edge to Edge workaround with the targetsdk 35 and everything will work fine.

thanks
i did try
added the section mentioned
had no line to delete
nothing made the app work
it failed in runtime
so i went back and all is working
my sdk is 36
my target sdk in manifest is 35
i think i'm missing something

this is my current working manifest

i tried to remark the theme section but it didn't work



B4X:
''This code will be applied to the manifest file during compilation.
''You do not need to modify it in most cases.
''See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136

'AddManifestText(<uses-permission
'android:name="android.permission.WRITE_EXTERNAL_STORAGE"
'android:maxSdkVersion="30" />
')


AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="35"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")



SetApplicationAttribute(android:theme, "@style/MyAppTheme")



CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#FFFFFF</item>
        <item name="colorPrimaryDark">#FFFFFF</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
)



SetApplicationAttribute(android:largeHeap,"true")

AddManifestText(<uses-feature android:name="android.hardware.camera" android:required="false"/>)
AddManifestText(<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>)
AddManifestText(<uses-feature android:name="android.hardware.camera.flash" android:required="false"/>)



AddApplicationText(<activity android:name="io.card.payment.CardIOActivity" android:configChanges="keyboardHidden|orientation" />)
AddApplicationText(<activity android:name="io.card.payment.DataEntryActivity" />)

AddPermission("android.permission.USE_FINGERPRINT")
AddPermission("android.permission.NFC")
AddPermission("android.permission.READ_PHONE_NUMBERS")


AddManifestText(
  <queries>
      <package android:name="arkom.nfc"/>
     <package android:name="com.whatsapp"/>
     <package android:name="com.whatsapp.w4b"/>
     <package android:name="org.telegram.messenger"/>
  </queries>
)       
       

AddApplicationText(
  <provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="$PACKAGE$.provider"
  android:exported="false"
  android:grantUriPermissions="true">
  <meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/provider_paths"/>
  </provider>
)

CreateResource(xml, provider_paths,
   <files-path name="name" path="shared" />
)


'SetApplicationAttribute(android:theme, "@style/LightTheme")
'CreateResource(values, theme.xml,
'<resources>
'   <style
'        name="LightTheme" parent="@android:style/Theme.Material.Light">
'       <item name="android:actionMenuTextAppearance">@style/LowerCaseMenu</item>
'       <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
'    </style>
'     <style name="LowerCaseMenu" parent="android:TextAppearance.Material.Widget.ActionBar.Menu">
'        <item name="android:textAllCaps">false</item>
'    </style>
'</resources>
')
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
better create a new thread for this issue, with a meaningful title to better help us help you
 
Upvote 0
Top