DJI-Mobile-SDK-Tutorials / Android-FPVDemo

This demo shows how to create a simple FPV view and how to take photo and record video using DJI Mobile SDK.
MIT License
64 stars 81 forks source link

typo of Readme.md #2

Closed akira-sasaki closed 8 years ago

akira-sasaki commented 8 years ago
new Thread(){
        public void run(){
            try{
                DJIDrone.checkPermission(getApplicationContext(), new DJIGerneralListener(){
                    @Override
                    public void onGetPermissionResult(int result){
                        if(result == 0) {
                            // show success
                            Log.e(TAG, "onGetPermissionResult ="+result);
                            Log.e(TAG, 
"onGetPermissionResultDescription="+DJIError.getCheckPermissionErrorDescription(result));
                        } else {
                            // show errors
                            Log.e(TAG, "onGetPermissionResult ="+result);
                            Log.e(TAG, 
"onGetPermissionResultDescription="+DJIError.getCheckPermissionErrorDescription(result));
                        }
                    }
                });
            } catch (Exception e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
        }
    }.start();

I find typo of sample code at Readme.md

new DJIGerneralListener() is new DJIGeneralListener().

dji-dev commented 8 years ago

Hi, thanks for the fix, we have updated the Android FPVDemo readme file to SDK 3.0, please check it, thanks!

dji-dev commented 8 years ago

Since this issue is solved, close it now.