This is an old thread. It is not relevant if you are using newer versions of B4A.
In order for your current applications to run properly on Android 5.0 devices you need to:
1. Compile your app with B4A v3.82+
2. Add this line to the manifest editor (assuming that you didn't set a different theme).
Without this line the new material theme will be used. The material theme (at least currently) has some issues that can break existing layouts.
3. If you are using the StdActionBar and handling the ButtonClicked event then you need to update the library to v1.52 (otherwise the app will crash). Note that the ButtonClicked event will not be raised on Android 5 devices.
You should handle the Activity_ActionBarHomeClick event instead of StdActionBar_ButtonClicked event. The Activity_ActionBarHomeClick event will work on all versions.
In order for your current applications to run properly on Android 5.0 devices you need to:
1. Compile your app with B4A v3.82+
2. Add this line to the manifest editor (assuming that you didn't set a different theme).
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
3. If you are using the StdActionBar and handling the ButtonClicked event then you need to update the library to v1.52 (otherwise the app will crash). Note that the ButtonClicked event will not be raised on Android 5 devices.
You should handle the Activity_ActionBarHomeClick event instead of StdActionBar_ButtonClicked event. The Activity_ActionBarHomeClick event will work on all versions.
Last edited: