Android Question Error DJI lib

kohle

Active Member
Licensed User
Longtime User
I compiled the example with b4a 8 and received following info at runtime:

The metadata received from server is invalid, please reconnect to the server and try.




Logger verbunden mit: HTC HTC U11
--------- beginning of main
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
The metadata received from server is invalid, please reconnect to the server and try.
activation listener added
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (sdk_activationstatechanged)
 

kohle

Active Member
Licensed User
Longtime User
In DJI developer console the
Bundle Identifier is "jk_flight"
For the package name I use "jk_flight.test"
 
Upvote 0

kohle

Active Member
Licensed User
Longtime User
Ok I made a new one and this works. I get the info : not connected product.
Can it be that the DJI Air is only supported with the new avaible SDK 4.5 ?
Is there a LIB ?
 
Upvote 0

kohle

Active Member
Licensed User
Longtime User
I get this :

B4A Version: 8.00
Parse den Code. (0.01s)
Kompiliere den Code. (2.83s)
Kompiliere Layoutcode. (0.01s)
Organisiere Libraries. Error
Das Verzeichnis ist nicht leer.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
It is not related to the DJI Library.
Just try again....

Maybe you have a file from inside the objects folder open in another program? B4A will recreate them when compiling... Seem that the delete of the old files does not work.

You may create a new Thread for this B4A Issue.
 
Upvote 0

kohle

Active Member
Licensed User
Longtime User
app starts now and the log shows:


** Activity (main) Pause, UserClosed = true **
** Service (starter) Destroy **
**************************** BaseApplication **************************
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Registered successfully!
activation listener added
No connected product
Product connected
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
java.lang.Exception: Sub sdk_activationstatechanged was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:192)
at anywheresoftware.b4a.BA$2.run(BA.java:360)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:180)
at android.app.ActivityThread.main(ActivityThread.java:6950)
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:835)
(Exception) java.lang.Exception: Sub sdk_activationstatechanged was not found.
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
Camera / battery not ready
.....
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…