Android Question app over device navigation buttons

Fadi-l

Member
Hello ...
I've a problem on some android (ver 14) devices (not all devices)
my app show over the device's navigation buttons.

how can I fix this
thank you so much
 

Attachments

  • 01.jpg
    01.jpg
    304.6 KB · Views: 104

Fadi-l

Member
Hi ...
I meant the bottom navigation buttons of the device, I added new image that show the problem in 2 devices


Manifest:
'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: https://www.b4x.com/forum/showthread.php?p=78136
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
AddPermission(android.permission.READ_PHONE_STATE)
AddPermission(android.permission.ACCESS_NETWORK_STATE)
AddPermission(android.permission.VIBRATE)
AddPermission(android.permission.WAKE_LOCK)
AddPermission("android.permission.GET_ACCOUNTS")
AddPermission("android.permission.READ_CONTACTS")
AddPermission("android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS")
AddPermission(android.permission.SCHEDULE_EXACT_ALARM)
AddPermission(android.permission.SYSTEM_ALERT_WINDOW)
AddPermission(android.permission.POST_NOTIFICATIONS)
AddPermission(android.permission.INTERNET)
AddPermission(android.permission.ACCESS_FINE_LOCATION)
AddPermission(android.permission.FOREGROUND_SERVICE)
AddPermission(android.permission.FOREGROUND_SERVICE_LOCATION)
 
AddManifestText(
<uses-sdk android:minSdkVersion="10" 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$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
SetApplicationAttribute(android:usesCleartextTraffic,"true")

' set heap to max (for memeory)
SetApplicationAttribute(android:largeHeap,"true")

SetActivityAttribute(Quran_Al_ZekerAlHakem, android:theme, "@android:style/Theme.Translucent")
SetActivityAttribute(Show_NotificationWindow, android:theme, "@android:style/Theme.Translucent")


CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)


AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)

SetServiceAttribute(TimerService, android:foregroundServiceType, "location")
SetServiceAttribute(Starter, android:foregroundServiceType, "location")
SetServiceAttribute(OnlineService, android:foregroundServiceType, "location")
SetServiceAttribute(DownloadFile, android:foregroundServiceType, "location")
SetServiceAttribute(DownloadService, android:foregroundServiceType, "location")
SetServiceAttribute(OurWorks_Downloader, android:foregroundServiceType, "location")
 

Attachments

  • 02.jpg
    02.jpg
    327.4 KB · Views: 90
Upvote 0

Fadi-l

Member
Please any idea about this problem ?
on the new android update the problem start showing


are there away to turn my app to be full screen and above the bottom device buttons?
 

Attachments

  • 494573775_2965530196949137_9006038655888123609_n.jpg
    494573775_2965530196949137_9006038655888123609_n.jpg
    247.6 KB · Views: 69
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is probably the cause of the problem:
B4X:
SetActivityAttribute(Quran_Al_ZekerAlHakem, android:theme, "@android:style/Theme.Translucent")
SetActivityAttribute(Show_NotificationWindow, android:theme, "@android:style/Theme.Translucent")
This is a very old theme. Not one that you should use.

Remove it and set these two attributes:
B4X:
    #FullScreen: True
    #IncludeTitle: False
 
Upvote 0

Fadi-l

Member
I found the problem :(
android:targetSdkVersion="36" when I put it to 34 or less the program work just fine , when change it to 35, or 36 the above problem show, so are there any idea to fix this problem :(
 
Upvote 0
Top