Hello,
I have tried the Daydream tutorial on Android TV 6. About 3 years old and still work.
But anyway to use
without app crashes?
Please help.
https://www.b4x.com/android/forum/threads/android-daydream-dreamservice-tutorial.24939/
This is crash log:
Thanks very much.
I have tried the Daydream tutorial on Android TV 6. About 3 years old and still work.
But anyway to use
B4X:
dd.Panel.LoadLayout("Layout1")
Please help.
https://www.b4x.com/android/forum/threads/android-daydream-dreamservice-tutorial.24939/
This is crash log:
B4X:
Installing file.
PackageAdded: package:com.b4aExample.daydream
** Service (dreamservice) Create **
** Service (dreamservice) Start **
onDetachedFromWindow
** Service (dreamservice) Start **
Error occurred on line: 27 (DreamService)
java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at com.b4aExample.daydream.dreamservice._dd_sizechanged(dreamservice.java:170)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:708)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at anywheresoftware.b4a.BA$1.run(BA.java:293)
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:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:394)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:425)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:144)
... 16 more
** Service (dreamservice) Destroy **
Thanks very much.
Last edited: