Comments (56)
Can you confirm the SDK is being registered? If SDK register isn’t successful then you will only get video, nothing more.
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 10:25 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Subject: [dji-sdk/Mobile-SDK-Android] Help (#27)
I try sample code in pt3 pro and doesnt dowk, no connected
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #27 https://github.com/notifications/beacon/AM7-OJfzf_fXAKP5b0IvnQ_7daqqO07rks5pzVT-gaJpZM4H94B-.gif
from mobile-sdk-android.
Yeah, I registered in http://developer.dji.com/en/user/apps/#all with Bundle IDcom.dji.sdk.sample but even can get video
from mobile-sdk-android.
Are you seeing the message about the USB connection?
If you trace initSDKManager.onProductChanged is it being called?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:10 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
Yeah, I registered in http://developer.dji.com/en/user/apps/#all with Bundle IDcom.dji.sdk.sample but even can get video
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OEC359dd22o0gpZZBiCEbGfoKzPtks5pzV9lgaJpZM4H94B-.gif
from mobile-sdk-android.
Message about USB connection? Where?
from mobile-sdk-android.
When you plug in the USB cable to your device.
What aircraft are you using?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:21 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
Message about USB connection? Where?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OKU-IFwhS78cOI2ZpAFQDECB4CLOks5pzWImgaJpZM4H94B-.gif
from mobile-sdk-android.
I try use the example code... Compilated in android studio in a galaxy s6 android 5
from mobile-sdk-android.
Phantom 3 profes
from mobile-sdk-android.
OK, so you connect the remote controller to your Android, you should see a pop-up asking about USB connection permission , same as you see when using the GO app.
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:24 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
Phantom 3 profes
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OAPd-hlW8EgpIgWrbIQihXzgaiKcks5pzWLNgaJpZM4H94B-.gif
from mobile-sdk-android.
When connect the phone to rc dji go app say me I need a update for Battery but y put the .bin in the sdk and no happed nothing. And a exaple say only rc connected
from mobile-sdk-android.
Before that. If all apps are closed and you connect the RC what happens?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:26 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
When connect the phone to rc dji go app say me I need a update for Battery but y put the .bin in the sdk and no happed nothing. And a exaple say only rc connected
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OH30XG0_Ib79NZL22SyZh13vIzQZks5pzWMxgaJpZM4H94B-.gif
from mobile-sdk-android.
The phone show me a pop-up and I select the application that I need ... In this case the example
from mobile-sdk-android.
We can talk about that for any email?
from mobile-sdk-android.
OK, that is good. Next do you trace the calls I mentioned? Do you see a connection message coming from the SDK?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:28 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
The phone show me a pop-up and I select the application that I need ... In this case the example
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OFB5UIvbTYTuqy_CjT61uSYVJIbZks5pzWPFgaJpZM4H94B-.gif
from mobile-sdk-android.
If you trace initSDKManager.onProductChanged is it being called?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:29 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
We can talk about that for any email?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OKkoYYX4RIv032YfPpseOjb3tasSks5pzWQEgaJpZM4H94B-.gif
from mobile-sdk-android.
I don't see any messages
from mobile-sdk-android.
What about onGetRegisteredResult?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:31 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
I don't see any messages
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OI2O9ncQv0I0Du2662lGjeCLZPv7ks5pzWR_gaJpZM4H94B-.gif
from mobile-sdk-android.
I don't modify any code line because first I want run a sample code, after that I lear about the functions and then programming.
from mobile-sdk-android.
Bue any example work for me
from mobile-sdk-android.
You have something like this:
DJISDKManager.getInstance().initSDKManager(getApplicationContext(), new DJISDKManager.DJISDKManagerCallback() {
@OverRide
public void onGetRegisteredResult(DJIError djiError) {
Add a line like this:
Log.d("TEST", "Registration: " + djiError.getDescription());
See what the output is and let me know, it will tell if you are getting registered.
I assume you followed the directions to create an app ID and added to your manifest?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:35 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
I don't modify any code line because first I want run a sample code, after that I lear about the functions and then programming.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OBCL3Kg96sKjVdWTY7smOgCSb89-ks5pzWU5gaJpZM4H94B-.gif
from mobile-sdk-android.
Yeah I follow the instructions... I will add the code line in a second
from mobile-sdk-android.
I dont found this code line, sorry
from mobile-sdk-android.
It will be in your Application class override
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:49 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
I dont found this code line, sorry
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OEh4LIWpaLqTf_B1Mt90t24SMZmZks5pzWijgaJpZM4H94B-.gif
from mobile-sdk-android.
Do you have any email where we can talk and send you screen captures?
from mobile-sdk-android.
I prefer not to give out personal email.
In your Android project, do you have a class that extends android.app.Application?
In your manifest do you have something like this?
<application
android:name=".Application"
Where the name is the same class name as the class extending android.app.Application.
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:52 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
Do you have any email where we can talk and send you screen captures?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OA8lGb46OaetvoP2Z1ahpSa3hpfUks5pzWlHgaJpZM4H94B-.gif
from mobile-sdk-android.
I found it
@OverRide
public void onGetRegisteredResult(DJIError error) {
if(error == DJISDKError.REGISTRATION_SUCCESS) {
DJISDKManager.getInstance().startConnectionToProduct();
} else {
Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() {
@Override
public void run() {
Toast.makeText(getApplicationContext(),
R.string.sdk_registration_message,
Toast.LENGTH_LONG).show();
}
});
}
Log.v(TAG, error.getDescription());
}
from mobile-sdk-android.
Add the code I sent just under the
public void onGetRegisteredResult(DJIError error) {
Then run your app and there should be a trace of the SDK validation output, that will tell you if you are getting SDK register
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:56 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
I found it
@OverRide https://github.com/Override
public void onGetRegisteredResult(DJIError error) {
if(error == DJISDKError.REGISTRATION_SUCCESS) {
DJISDKManager.getInstance().startConnectionToProduct();
} else {
Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() {
@Override
public void run() {
Toast.makeText(getApplicationContext(),
R.string.sdk_registration_message,
Toast.LENGTH_LONG).show();
}
});
}
Log.v(TAG, error.getDescription());
}
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OHuO55BQ03wGYpU6_fqoxMtBuB6vks5pzWpOgaJpZM4H94B-.gif
from mobile-sdk-android.
Also, make sure no other apps are running on device (especially the GO app) or you will not get connection.
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 11:56 AM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
I found it
@OverRide https://github.com/Override
public void onGetRegisteredResult(DJIError error) {
if(error == DJISDKError.REGISTRATION_SUCCESS) {
DJISDKManager.getInstance().startConnectionToProduct();
} else {
Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() {
@Override
public void run() {
Toast.makeText(getApplicationContext(),
R.string.sdk_registration_message,
Toast.LENGTH_LONG).show();
}
});
}
Log.v(TAG, error.getDescription());
}
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OHuO55BQ03wGYpU6_fqoxMtBuB6vks5pzWpOgaJpZM4H94B-.gif
from mobile-sdk-android.
@OverRide
public void onGetRegisteredResult(DJIError error) {
Log.d("TEST", "Registration: " + djiError.getDescription());
if(error == DJISDKError.REGISTRATION_SUCCESS) {
and say me "cannot resolve sysmbol 'djiError'"
from mobile-sdk-android.
Have you programmed before or are you new at programming?
Change the line to match the variable name:
Log.d("TEST", "Registration: " + error.getDescription());
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 12:01 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
@OverRide https://github.com/Override
public void onGetRegisteredResult(DJIError error) {
Log.d("TEST", "Registration: " + djiError.getDescription());
if(error == DJISDKError.REGISTRATION_SUCCESS) {
and say me "cannot resolve sysmbol 'djiError'"
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OBHG0z_MrTx73U4XiDzrHENkf7fpks5pzWtcgaJpZM4H94B-.gif
from mobile-sdk-android.
I have 3 days in the error, have so dream sorry jajajaja
from mobile-sdk-android.
Question.... Console log dont show if a connect the phone in the controll, how I can see the error?
from mobile-sdk-android.
I put it in a toast
from mobile-sdk-android.
That works also but sometimes Toasts can be missed.
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 12:08 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
I put it in a toast
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-ODobzuQ61A7P-I-CiMRXJJJBYlBKks5pzW0ggaJpZM4H94B-.gif
from mobile-sdk-android.
You can use a Wi-Fi debugger or maybe for you it would be better to run the app and then after a few seconds disconnect the Android from the RC and connect to the computer; logs are buffered and it will stream to PC once connection.
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 12:05 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
Question.... Console log dont show if a connect the phone in the controll, how I can see the error?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OBjON28o8F0jBPrU5zwuEe6STcggks5pzWx4gaJpZM4H94B-.gif
from mobile-sdk-android.
Api key succ. registred
from mobile-sdk-android.
but the app show a text No product connected
from mobile-sdk-android.
Did you add Toast in this method to check for connection:
@OverRide
public void onProductChanged(DJIBaseProduct djiBaseProduct, DJIBaseProduct djiBaseProduct1) {
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 12:13 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
but the app show a text No product connected
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OLQkIEKk3yoL3VFPYjaAf5S5VBCQks5pzW4ggaJpZM4H94B-.gif
from mobile-sdk-android.
Put that now
Toast.makeText(getApplicationContext(),
String.format("onProductChanged oldProduct:%s, newProduct:%s", oldProduct, newProduct),
Toast.LENGTH_LONG).show();
from mobile-sdk-android.
show me null and null in old a new product
from mobile-sdk-android.
You need to program so you don’t crash when getting null.
Did I understand correctly that you have only tried programming for 3 days? You have not programmed before now?
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 12:24 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
show me null and null in old a new product
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OFIj_xPebjCjwrvHv9eIEPnbnnSLks5pzXDZgaJpZM4H94B-.gif
from mobile-sdk-android.
nono I programmed before but in this project, for this drone sdk i want first run a example code before understand how sdk work.... I mean, first i want see a example running in my phone and after develop my app.
from mobile-sdk-android.
OK, then you should understand how to program to test for null so that you can see the Toasts from the callback as they come in. Sometimes values are null, test for null and ignore them. If a connection is made then there will be a value.
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 12:28 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
nono I programmed before but in this project, for this drone sdk i want first run a example code before understand how sdk work.... I mean, first i want see a example running in my phone and after develop my app.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OILj7Vq5KOt4rskgXX7wtCInf40sks5pzXHXgaJpZM4H94B-.gif
from mobile-sdk-android.
yes I know, I imported the github repo in android studio and followed the steps in https://developer.dji.com/get-started/mobile-sdk/Run-SDK-Sample-Code/. After all Ive tried, this sample is still not working for me. It
d be quite helpful if you provide me an execution environment, working with the current version, given the instructions provided are outdated.
from mobile-sdk-android.
I do not have so much time to create this for you but I’ve attached a working application override which I use to test code for DJI. You can replace your application with it and you should see a connection unless there is something else external to your app.
Best of luck
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 12:43 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
yes I know, I imported the github repo in android studio and followed the steps in https://developer.dji.com/get-started/mobile-sdk/Run-SDK-Sample-Code/. After all Ive tried, this sample is still not working for me. Itd be quite helpful if you provide me an execution environment, working with the current version, given the instructions provided are outdated.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OAjFiBHb9mKwNYM3ZixYkAQPU41tks5pzXVdgaJpZM4H94B-.gif
from mobile-sdk-android.
Where did you attached the workaround? I downloaded this repo but this is still not working. I checked out the latest version. This project is so important.
from mobile-sdk-android.
https://drive.google.com/file/d/0BzUKj4iYWZNLOTlodUpWR0hWcFk/view?usp=sharing
From: JeffreySa [mailto:[email protected]]
Sent: Friday, April 1, 2016 1:01 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
Where did you attached the workaround? I downloaded this repo but this is still not working. I checked out the latest version. This project is so important.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OHNON8ormFjd6eNslhpu5eyiITHBks5pzXmTgaJpZM4H94B-.gif
from mobile-sdk-android.
Hi. Many days ago we talking about this issue. I want to tell you how I create my project and you please say me if I have a mistake.
First I download this repo, open my android studio 1.5.1 in my mac. After y click in open a existent project android studio and find the unzip repo. Later in developer website I create the api key and put it in the manifest and them run the app in a Samsung galaxy s6 with android 5.1... The app say me product no found, the app won't connect.
I was so specific, I hope you can help me with that. Thanks.
from mobile-sdk-android.
Have you provide the permission to the application for getting the usb accessory?
from mobile-sdk-android.
Kenargo, SilverChangjian. Do either of you work on the SDK team? Jeffrey Sa's issue is exactly what I am seeing. Before your next question Kenargo, yes I know very well how to program, being the CTO at a software company. We have multiple DJI products (all the Phantoms made, Matrice, S900, S1000). What I am trying to do is exactly the same as Jeffrey, evaluate the SDK. The original SDK was horrible. With the total rewrite at version 3 we thought we might try again. Please note that for the S900, S1000 and Flamewheels we have, we did not use the DJI flight computers, installing Pixhawks from 3DR as it was a good sdk. We are trying to emulate the functionality we have working with the Pixhawk with the DJI sdk.
Here's where I take exception: A sample should work. Easy to install and run. Thereby an external dev can start to get a feel for how to code with it. If, the sample does not work, and Jeffrey has to ask this many questions and still not be able to get it to work, the SDK sample and documentation is not good.
The samples have 2.4 version samples, documentation to old versions of the simulator etc etc. That doesn't help anyone here. Documentation is horribly lacking.
If either of you have the sample working, and all an external dev needs to do is change the API key to that of their own, then update the sample if you work for the team. Otherwise upload it somewhere other people that you are trying to help here could get it from.
Jeffrey, you have been very specific, I feel your pain.
from mobile-sdk-android.
Me, no I am not associated with DJI nor the SDK team at DJI. I’ve learned the SDK, mainly through trial and error.
Have you looked at this thread and Dave’s blog?
http://forum.dev.dji.com/thread-32188-1-1.html
Ken
From: Edan Cain [mailto:[email protected]]
Sent: Monday, April 11, 2016 2:59 PM
To: dji-sdk/Mobile-SDK-Android [email protected]
Cc: ken argo [email protected]
Subject: Re: [dji-sdk/Mobile-SDK-Android] Help (#27)
Kenargo, SilverChangjian. Do either of you work on the SDK team? Jeffrey Sa's issue is exactly what I am seeing. Before your next question Kenargo, yes I know very well how to program, being the CTO at a software company. We have multiple DJI products (all the Phantoms made, Matrice, S900, S1000). What I am trying to do is exactly the same as Jeffrey, evaluate the SDK. The original SDK was horrible. With the total rewrite at version 3 we thought we might try again. Please note that for the S900, S1000 and Flamewheels we have, we did not use the DJI flight computers, installing Pixhawks from 3DR as it was a good sdk. We are trying to emulate the functionality we have working with the Pixhawk with the DJI sdk.
Here's where I take exception: A sample should work. Easy to install and run. Thereby an external dev can start to get a feel for how to code with it. If, the sample does not work, and Jeffrey has to ask this many questions and still not be able to get it to work, the SDK sample and documentation is not good.
The samples have 2.4 version samples, documentation to old versions of the simulator etc etc. That doesn't help anyone here. Documentation is horribly lacking.
If either of you have the sample working, and all an external dev needs to do is change the API key to that of their own, then update the sample if you work for the team. Otherwise upload it somewhere other people that you are trying to help here could get it from.
Jeffrey, you have been very specific, I feel your pain.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #27 (comment) https://github.com/notifications/beacon/AM7-OHoMrHcyAQoG72vBHYgJ8q4HsGLxks5p2sQWgaJpZM4H94B-.gif
from mobile-sdk-android.
Hi Ken,
no I hadn't seen a link to Dave's blog, thanks for posting the link here, much appreciated.
Like you, Jeffrey and I (I don't know him) are simply trying to get through the initial hurdles that shouldn't be there to learn the SDK through trial and error.
Again my thanks, look forward to reading Dave's blog.
Edan
from mobile-sdk-android.
Thank you for your valuable feedback. We understand that it has been frustrating and we are working hard on making the experience better. We will improve the Android Sample Code(Including Documentation) to help you get started easily. Also we are currently working on an updated Android GSDemo, it explains how to use Waypoint Missions of DJI SDK. Soon it will be published.
from mobile-sdk-android.
Hi all, if you meet problems when using the Android Sample Code, please check the following three items:
- Make sure your DJI Remote Controller upgrade to the latest firmware to support AOA
- Make sure you register an App Key from DJI Developer website, and enter it in your project's AndroidManifest.xml file
- If you are using Android 6.0 Marshmallow to run the Sample Code, please make sure targetSdkVersion in your your project's build.gradle file is 22 or lower.
We have updated the Readme file of Android SDK Sample Github Page, please follow the process to run the sample.
Also, we provide a new tutorial to help you import the DJI Android SDK to your own Android Studio Project, please check this link: https://github.com/DJI-Mobile-SDK/Android-ImportSDKToAndroidStudio
Hope these helps!
from mobile-sdk-android.
SilveryChangjian, oliverou, thank you both for posting.
Edan
from mobile-sdk-android.
JefferySA. I have the sample working thanks to the wonderful help from the SDK team. Some things that I missed that I wish to share so that you can get it running also.
Firstly, when you create your app key, use the same name as the demo package "com.dji.sdk.sample". Use this api key.
Secondly, even if your mobile device doesn't support Android SDK 23, you must have it installed for a clean import of the sample. I had been using only 22, and it would fail to bring the sample in cleanly.
Ensure that the app project structure dependency includes the DJI-SDK-LIB, (within the File->Project Structure->Dependencies), otherwise click the + button to manually add it.
Once I had a successful registration (DJISampleApplication.java file =>OnGetRegisteredResult) I still did not have the sample Connecto to Product correctly. This was due to having the DJI Go app installed and having it set as the default launch application. I uninstalled DJI.Go, and the sample code connected perfectly.
I will be reinstalling the DJI.GO app, however I will not set it as the default, therefore when a connection to the TX controller is made, I will have to chose which app to run, the DJI.GO or the Sample.
I can confirm I have the sample working with the DJI Matrice, the Phantom 4 and the Phantom 3 Professional.
If you still need help let me know, we seem to have had the same problems and would be happy to help you resolve them to get it working.
Edan
from mobile-sdk-android.
Will go ahead and close this issue since it has run quite long.
@JeffreySa Please help to create a separate issue if you still have problem with current version SDK 4.3.2
Thanks!
from mobile-sdk-android.
Related Issues (20)
- Panorama support HOT 2
- Crash when calling registerApp()
- Altitude rise function is not accurate HOT 9
- DJI Air 2S Intelligent Flight Modes (ActiveTrack, Spotlight, POI) HOT 5
- The execution could not be executed HOT 4
- How to get a distance value to the .jpg file? HOT 3
- DJI SDK V5 LRF HOT 1
- How do I delete markers? HOT 1
- GetFirmwareVersion throwing an exception HOT 1
- switch map to camera on Flight page HOT 3
- dji.v5.manager.SDKManager.<init>(): [0x0] Constructor returning without calling superclass constructor HOT 2
- Bezier Curve HOT 3
- 说实话,官网的tutorial实在是过时了 HOT 8
- Angle and Heading of Drone HOT 1
- Any plan to support Android 14 with targetSdk = 34 HOT 18
- Home location set manually HOT 3
- How to get Controller battery info in dji msdk 4.16 HOT 3
- How to get verticle speed of drone in dji msdk 4.16 HOT 3
- Please someone help me understand HOT 5
- Error and problem with Mavic 2 Enterprise advanced focal length from MSDK HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-sdk-android.