Android Question Dialogs & B4A V.5

ciginfo

Well-Known Member
Licensed User
Longtime User
With B4A Version 5, I obtain an unusable curious DatePicker (Dialogs version 2.92). See the attahed image.
How to resolve the problem.
Thank you
 

Attachments

  • picker01.png
    picker01.png
    31.5 KB · Views: 182

ciginfo

Well-Known Member
Licensed User
Longtime User
This is my Manifest editor
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

Have I to Change <uses-sdk android:minSdkVersion="4" /> by <uses-sdk android:minSdkVersion="14" /> ?
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
Ok it adds the good target but now, error when I compile

B4A version: 5.20
Parsing code. (0.07s)
Compiling code. (0.19s)
Compiling layouts code. (0.14s)
Generating R file. Error
AndroidManifest.xml:18: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.Holo').
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
OK with platform 19 it compiles but it shows always the same unusable DatePicker .
Here the Manifest Editor :
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<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, "@android:style/Theme.Holo")
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
Yes. With Galaxy Core, version Android 4.4.4. Screenshot is not excatly the same now with
android:targetSdkVersion="14" (color different) but always unusable. Impossible to check the years.
 

Attachments

  • dialogs2.png
    dialogs2.png
    68.7 KB · Views: 213
Upvote 0
D

Deleted member 103

Guest
So as I understand it, you just do not want to display the calendar.
If so, then add this line in your code.
B4X:
Dim dialog As DateDialog
dialog.ShowCalendar = False
...
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
OK it is allright now. I upgrade my applis with B4A V.5 and with android.jar 14, I discover many differences.
Thanks to everyone.
 
Upvote 0
Top