mikeydoo
lvl.3
United States
Offline
|
Figured it out. It's a Gradle thing. Going through the introductory exercise, it steps through the setup of Gradle (the preferred build system for Android now), Problem is, the tutorial lacks the necessary setup for the Classes used in the tutorial.
Tutorial is here:
https://developer.dji.com/mobile ... project-integration
The additions that need to be added to MainActivity.java to get it to work are:
import android.Manifest;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Handler;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import android.support.annotation.NonNull;
import android.os.Looper;
import android.support.v4.content.ContextCompat;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.os.AsyncTask;
import android.content.Intent;
import android.widget.Toast;
import java.util.ArrayList;
import android.util.Log;
import dji.sdk.base.BaseProduct;
import dji.sdk.sdkmanager.DJISDKManager;
import dji.common.error.DJIError;
import dji.sdk.base.BaseComponent;
import dji.common.error.DJISDKError;
Once I tracked these down, the necessary dji elements are pulled through the use of Gradle the first time it is ran. I was able to then download it to my Samsung Galaxy S2 and it ran as expected. So now, next step is to start adding SDK elements to talk to the quads
|
|