Thanks Dennis! Your efforts are greatly appreciated. There seems to be lots of outdated docs and samples still being linked to from more current content. Not so easy to sort out. Looks as though the big sample project is meant to serve as docs as in "let the code do the talking" approach by dji? I'm glad you switched over to Android and hope you can share more of your findings soon.
Ha! I remember many conversations of "self documenting" code. Too funny. I find Android development more cumbersome then iOS maybe due to the numerous Android hardware targets, but it's definitely something I'm trying to keep up with. I'm really interested in Kotlin and have been wondering if Flutter would be up to the task. Just not sure if there would be any way to import the DJI SDK. Thanks for the feedback.
Thank you Dennis, but I wished I could make this work for my Spark and other older DJIs of mine, but every time I open the "Sample Code" directory into Android Studio I get tons of errors, like: "Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. Could not create task ':app:minifyDebugWithR8'. Cannot query the value of this provider because it has no value available." and many more... I tried it with SDK downloads Version 4.16.2 and 4.16.4 and even installed the Chipmunk release of Android Studio. All to no avail. What do I do wrong?
Is it still valid? Running the project in Android Studio on the right side I have the current file structures as well as on github - I can't open the project, the debugger doesn't work, and it doesn't look like an Android app at all
Great demonstration, thanks. Is there any way to connect non sdk models such as the Mini 2 SE & Mini 4 Pro to SDK? I'd love to Run them in ATAK using UAS tools but as they're not supported with DJI's SDK's they aren't recognized in my ATAK app unlike other supported models. Some Redit users have said it's possible > "You can use the mobile SDK V4 to get support for the Mini 2 SE to develop a new plugin"....... & "I use Mini 2 SE with UAS tools there is a way to do that but need to rewrite some code on the drone."
Hi! Thank for this video. I would like to know if there is possible to program the drone, like a Mavic 2 Enterprise, to do some Task. Also, it is possible to run OpenCV and make tasks by the camera result?
IS DENNIS THE ONLY PERSON IN THE UNIVERSE WHO CAN GET THIS SAMPLE APP TO LOAD IN ANDROID STUDIO???????? WHICH VERSION A.S. CAN LOAD IT WITHOUT CRASHING ERRORS ERRORS ERRORS ERRORS ERRORS????
hi, so i downloaded source code and when i open those source code it throws 3 error that it is org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: Could not create task ':app:minifyDebugWithR8 please solve this
Wait! We have to upload our code to DJI for the SDK to function!? So we have a unique idea we're just going to give away the source code to these guys?
How do you actually build/compile the mvsdk? I right click the build gradle file and run it and it does nothing. You skipped that important part in your video. Edit: I give up on this for now. Too many android studio errors/bugs/blockers. I installed android studio hedgehog and the first line in the build.gradle file throws errors: apply plugin: 'com.android.library' with not being able to find it. All of the --trace options and what not don't help me find out what the problem is. This SDK is complete garbage/non supported/poorly documented.
Hi. I wanted to develop an application to control the M300 RTK drone but I do not now if I should clone Mobile-SDK-Android or Mobile-UXSDK-Android from DJI github to start working on this project.
It's largely dependent on what you're trying to do. There are a few SDKs for that model: mobile, payload, and onboard SDK if I recall. The UX SDK is helpful to give you video streaming and widgets right out of the box. But I'd recommend getting familiar with the core functionality of the SDKs before you mess with the UX SDK....unless you're just trying to stream video or provide an experience like the Fly app. I may try and put together a video explaining the differences. Good luck with your project. The M300 is quite the beast of a drone!