Android Question B4XDrawer and customlistview

kisoft

Well-Known Member
Licensed User
Longtime User
I don't know if I asked correctly? I would like to run CLV in activity. I don't know what I'm doing wrong, I still have this error.
B4X:
java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference
    at de.amberhome.objects.appcompat.ACActionBar.setShowUpIndicator(ACActionBar.java:116)
    at b4a22.example.main._activity_create(main.java:443)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at b4a22.example.main.afterFirstLayout(main.java:104)
    at b4a22.example.main.access$000(main.java:17)
    at b4a22.example.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6710)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
** Activity (main) Resume **
 
Upvote 0

kisoft

Well-Known Member
Licensed User
Longtime User
I prepared a small project that shows the problem. The data are loaded from the database in the original.
 

Attachments

  • apcompmenu.zip
    63.9 KB · Views: 136
Upvote 0
Top