Greetings, I wanted to know if anyone could guide me on what could be happening thanks
B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
~w:1004,main,40
main$ResumableSub_Activity_Createresume (B4A line: 42)
sdk.Initialize("sdk")
java.lang.ExceptionInInitializerError
at anywheresoftware.b4a.objects.DJISDKManagerWrapper.Initialize(DJISDKManagerWrapper.java:33)
at b4a.example.main$ResumableSub_Activity_Create.resume(main.java:418)
at b4a.example.main._activity_create(main.java:374)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5306)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Native method not found: dji.midware.natives.SDKRelativeJNI.native_getUsbAccessoryAttachedString:()Ljava/lang/String;
at dji.midware.natives.SDKRelativeJNI.native_getUsbAccessoryAttachedString(Native Method)
at dji.sdk.sdkmanager.DJISDKManager.<clinit>(Unknown Source)
... 18 more
I am using a donmanfred library and I am trying to use the widgets, I wanted to combine your great work with donmafred's great work but when I use widgets, it it does not work for me, thanks.
Greetings, I use a phone Samsung’s GALAXY Mega(the screen is good and comfortable to watch), it has android 4.xxxx I think ... this will be the problem ... I use it to avoid the annoying permissions of android 6.xxx ....
Thanks Donmafred and tks Erel ... great work ... the problem was solved when using a phone with android 6 and enabling the application to have permissions ... I will continue with the tests ... now field (I bought A dji care for this ...), thanks
LogCat connected to: LGK53011b3ecb7
--------- beginning of crash
--------- beginning of system
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.widget.ImageView.getWidth()' on a null object reference
at dji.ui.widget.dashboard.CompassWidget.updateAircraftGimbalSizeAndHeading(Unknown Source)
at dji.ui.widget.dashboard.CompassWidget.updateAircraftLocation(Unknown Source)
at dji.ui.widget.dashboard.CompassWidget.onSensorChanged(Unknown Source)
at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(SystemSensorManager.java:505)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5551)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
~w:1004,main,50
** Activity (main) Resume **
The metadata received from server is invalid, please reconnect to the server and try.
** Activity (main) Pause, UserClosed = true **