Android Question MaterialDateTimePicker with B4A v10.70

LuigiTasca

Member
Licensed User
Longtime User
Good morning,
after updating B4a to version 10.70 the MaterialDateTimePicker library gives me the error :

Immagine.png


I've tried to put on tab Files the Font and to initialize it on Main Activity, but the error persist.

Any suggestions?

Best regards
 

LuigiTasca

Member
Licensed User
Longtime User
java.lang.RuntimeException: Font asset not found fonts/Roboto-Medium.ttf
at android.graphics.Typeface.createFromAsset(Typeface.java:206)
at com.wdullaer.materialdatetimepicker.TypefaceHelper.get(TypefaceHelper.java:31)
at com.wdullaer.materialdatetimepicker.date.DatePickerDialog.onCreateView(DatePickerDialog.java:360)
at android.app.Fragment.performCreateView(Fragment.java:2353)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.BackStackRecord.run(BackStackRecord.java:816)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
I had the same problem, without using MaterialDateTimePicker, but only importing png files that were needed for the layout. Despite having the file shape_01.png in the Files folder, even having synchronized the folder, clean project, etc it always gave me the same error. I had to rename the file, and re-enter it

1616071744038.png
 
Last edited:
Upvote 0

LuigiTasca

Member
Licensed User
Longtime User
I did not have the Roboto font, I had to add it later because of the error. I tried putting it in both Project/Files and Project/Files/fonts, but to no result ...
Any suggestion?

Best Regard
 
Upvote 0

jose luis gudino

Active Member
Licensed User
Longtime User
No. As the lib is from 2016 i know i do not have the source anymore. I suggest not to use the lib any longer if it does not work.

I have the same problem and I have used this library in an application for 3 years, now I must replace this library and make an update to all my clients
 
Upvote 0

Wolli013

Well-Known Member
Licensed User
Longtime User
Has anyone managed it in the new B4A version (10.7 / 10.9) ?
I would like to continue using this great lib.
If not, which alternative for a DateTime Picker do you have running?
 
Upvote 0
Top