Dropbox チューザー ドロップイン API をアプリケーションに統合しようとしています。異常な問題が発生しています。アプリで dbx chooser を起動すると、ファイルを選択するたびに、アプリケーションが次のエラー コードで失敗します。
申し訳ありません、エラーが発生しました。後でもう一度やり直してください。
Dropbox API を実装するコードの一部を次に示します。コードのこの部分は、ドロップボックス API が最初に呼び出される場所です。
public void StartDropboxApplication() {
// create the chooser
DbxChooser chooser = new DbxChooser(APP_KEY);
DbxChooser.ResultType result;
// determine which mode to be in // TODO REMOVE ALL BUT FILE CONTENT TODO SIMPLIFY by making this a setting
switch(( (RadioGroup) ParentActivity.findViewById(R.id.link_type)).getCheckedRadioButtonId() ) {
case R.id.link_type_content:
result = DbxChooser.ResultType.DIRECT_LINK;
break;
default:
throw new RuntimeException("Radio Group Related error.");
}
// launch the new activity
chooser.forResultType(result).launch(ParentActivity, 0);
}
これは、コードがそれを取得する必要がある位置ですが、実際には取得されません。
protected void onActivityResult( int request, int result, Intent data ) {
Log.i(fileName, "result: " + result);
// check to see if the camera took a picture
if (request == 1) {
// check to see if the picture was successfully taken
if (result == Activity.RESULT_OK) {
onPicture();
} else {
Log.i(fileName, "Camera App cancelled.");
}
} else if (request == 0) {
if ( result == Activity.RESULT_OK ) {
onDropbox(data);
} else {
Log.i(fileName, "dropbox related issue.");
}
}
}
あなたが提供できる助けや提案をありがとう。