Closed akira-sasaki closed 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().
Hi, thanks for the fix, we have updated the Android FPVDemo readme file to SDK 3.0, please check it, thanks!
Since this issue is solved, close it now.
I find typo of sample code at Readme.md
new DJIGerneralListener() is new DJIGeneralListener().