Bug? IME broken at targetSDKVersion 35 and 36

JackKirk

Well-Known Member
Licensed User
Longtime User
I use IME in a non-B4XPages B4a app.

I currently have the targetSdkVersion set to 36 in this app.

IME is no longer working.

After a lot of mucking around I dug up the old non-B4XPages IME example and tested it.

If I go into its Manifest and set targetSdkVersion to 34 the example works fine.

If I use 35 or 36 it fails - the IME_HeightChanged event is not triggered.

This is a major problem for me.

I attach the old non-B4XPages IME example.
 

Attachments

  • IME.zip
    11.3 KB · Views: 21

Erel

B4X founder
Staff member
Licensed User
Longtime User
No bug here.

1. targetSdkVersion should be 35.

2. You are missing the theme settings. The manifest editor code should be:
B4X:
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$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
 

JackKirk

Well-Known Member
Licensed User
Longtime User
Erel, thanks for that, adding:

CreateResourceFromFile(Macro, Themes.LightTheme)

to my Manifest solved the problem - but raises a couple of questions:

1. was this documented anywhere?
2. why is a theme necessary to get it to work?
3. would it work with themes other than LightTheme?

Thanks again...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…