Android Question A problem with the new targetSdkVersion required in B4A 8.0

Germán Arduino

Member
Licensed User
Hi:


I started trying one simple app that I've developed, with the new version of B4A and I get the complains that the recommended value for android:targetSdkVersion is 26 or above, then I made the modification in the manifest editor and tried to run the app, and happens that the titles of the pages are not shown (I do not know if may be for a color problem, or another problem). In the other tabs, the colors seems to changed also (more darks than the originals).

Attached, 2 images, the one with problem and the original, working normally.




pq2.PNG



pq1.PNG


Thanks for any hint!
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The thread title is wrong. B4A 8.0 doesn't require any targetSdkVersion. It recommends you to set it however you can ignore that warning.
If you are not developing for Google Play then it is fine to use a lower version of targetSdkVersion.

My guess is that you have previously used the holo theme.

While not recommended to use old themes you can force it with this line in the manifest editor:
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
 
Upvote 0

Germán Arduino

Member
Licensed User
The thread title is wrong. B4A 8.0 doesn't require any targetSdkVersion. It recommends you to set it however you can ignore that warning.
If you are not developing for Google Play then it is fine to use a lower version of targetSdkVersion.


Yes, my poor English do not help. I wanted to say that I see this behaviour in B4A 8.0, but not that 8.0 require any targetSdkVersion.


My guess is that you have previously used the holo theme.

While not recommended to use old themes you can force it with this line in the manifest editor:
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")


I really do not know yet about themes, only took an example of tabpages and used it. But yes, your suggestion solve the problem! I will investigate a bit about themes.

Thanks.
 
Upvote 0
Top