How to Set SDK 3.0 on Android Studio with windows7 Step by Step For beginner


#1

How to Set SDK 3.0 on Android Studio with windows7 Step by Step For beginner.

I will finish to write easy tutorial how to set SDK 3.0 on Android Studio with windows 7 step by step.
Many beginner want to know detail information about it. But There is no enough information.
And no one posted detail information for this. Maybe so many users want to know about it.

So I decide to do it.
I will keep on updating this Topic.

Step 1.
Download Java SE (www.oracle.com)

Step 2.
Download and Install Android Studio (developer.android.com)

Step 3.
Run Android Studio
File > New > New Project

Step 4.
build.gradle (Module: app) > Add " compile ‘com.parrot:arsdk:3.12.0’ " like the following.

ex)

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.0'
    testCompile 'junit:junit:4.12'
    compile 'com.parrot:arsdk:3.12.0'
}

Step 5

Add the following code at MainActivity.

package com.example.syhwang.beboptest;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.parrot.arsdk.ARSDK;

public class MainActivity extends AppCompatActivity {

    static {
        ARSDK.loadSDKLibs();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

######################################################################################
[ Automatically Importing Function of Android Studio without importing manually ]
For Windows/Linux, you can go to File -> Settings -> Editor -> General -> Auto Import -> Java and make the following changes:

change Insert imports on paste value to All
markAdd unambigious imports on the fly option as checked

On a Mac, do the same thing in Android Studio -> Preferences
######################################################################################

Step 6. How to run SDK Sample Code

Use the precompiled SDK (hosted on JCenter):
With Android Studio, open the settings.gradle located in SDKSample/buildWithPrecompiledSDK.

Build and Run App on your Android Phone.
Connect with WiFi or Bluetooth of your Drone. (Swing, Bebop, Bebop 2, Jumping Race, Sumo, Airbone)
Then you can see Drone list on SDKSample App.
Just click your drone.
You can test basic functions of your Drone.


SDK for Airbone night
#2

Thank you ! I was losing hope of finding any tutorial about that ! Thanks a lot !