B4A Library MultiDayCalendarView

Roberto P.

Well-Known Member
Licensed User
Longtime User
I have problems at runtime, in the loading of the layout?
see image. what can it be?
thank you
 

Attachments

  • calendar.png
    237.9 KB · Views: 280

Roberto P.

Well-Known Member
Licensed User
Longtime User
Updated, but I have the same problem!
 

Attachments

  • calendar.png
    202.1 KB · Views: 260

Roberto P.

Well-Known Member
Licensed User
Longtime User
here is error:

main_activity_create (B4A line: 35)
Activity.LoadLayout("main")
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at JHS.MultiDayCalendarView.main._activity_create(main.java:375)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at JHS.MultiDayCalendarView.main.afterFirstLayout(main.java:103)
at JHS.MultiDayCalendarView.main.access$000(main.java:18)
at JHS.MultiDayCalendarView.main$WaitForLayout.run(main.java:81)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6134)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
... 16 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/view/GestureDetectorCompat;
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarView.init(MultiDayCalendarView.java:104)
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarView.<init>(MultiDayCalendarView.java:85)
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarView.<init>(MultiDayCalendarView.java:80)
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarView.<init>(MultiDayCalendarView.java:76)
at multidaycalendarviewwrapper.multidayCalendarViewWrapper._initialize(multidayCalendarViewWrapper.java:60)
... 20 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.GestureDetectorCompat" on path: DexPathList[[zip file "/data/app/JHS.MultiDayCalendarView-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 25 more
Suppressed: java.lang.ClassNotFoundException: android.support.v4.view.GestureDetectorCompat
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 26 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
It works with addizional jar.
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
but when I click on the cells from this error:

** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
B4A: first day = Mon Nov 28 01:00:00 CET 2016
B4A: first day = Mon Nov 28 01:00:00 CET 2016
B4A: first day = Mon Nov 28 01:00:00 CET 2016
B4A: first day = Tue Nov 29 01:00:00 CET 2016
B4A: first day = Wed Nov 30 01:00:00 CET 2016
B4A: first day = Wed Nov 30 01:00:00 CET 2016
B4A: first day = Wed Nov 30 01:00:00 CET 2016
B4A: first day = Wed Nov 30 01:00:00 CET 2016
B4A: first day = Tue Nov 29 01:00:00 CET 2016
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String main.java.com.github.sundeepk.multidaycalendarview.domain.Event.getEventName()' on a null object reference
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarViewController.onLongPress(MultiDayCalendarViewController.java:120)
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarView$1.onLongPress(MultiDayCalendarView.java:36)
at android.view.GestureDetector.dispatchLongPress(GestureDetector.java:700)
at android.view.GestureDetector.access$200(GestureDetector.java:40)
at android.view.GestureDetector$GestureHandler.handleMessage(GestureDetector.java:273)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6134)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
B4A: first day = Sun Nov 27 01:00:00 CET 2016
B4A: first day = Sat Nov 26 01:00:00 CET 2016
B4A: first day = Fri Nov 25 01:00:00 CET 2016
B4A: first day = Thu Nov 24 01:00:00 CET 2016
B4A: first day = Wed Nov 23 01:00:00 CET 2016
B4A: first day = Tue Nov 22 01:00:00 CET 2016
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String main.java.com.github.sundeepk.multidaycalendarview.domain.Event.getEventName()' on a null object reference
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarViewController.onLongPress(MultiDayCalendarViewController.java:120)
at main.java.com.github.sundeepk.multidaycalendarview.MultiDayCalendarView$1.onLongPress(MultiDayCalendarView.java:36)
at android.view.GestureDetector.dispatchLongPress(GestureDetector.java:700)
at android.view.GestureDetector.access$200(GestureDetector.java:40)
at android.view.GestureDetector$GestureHandler.handleMessage(GestureDetector.java:273)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6134)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
 

MAGAREY

Member
Licensed User
Longtime User
Is possible to increase the height of the cells of hours?

 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…