0
私は動作送信を使用してファイルを送信するアプリケーションを作成しました.1時間後にコードが機能しません。androidでファイルを共有するには
他のアプリを開くと、shareItとbluetoothファイルのiamafileに「このようなコンテンツタイプの転送はサポートされていません」というエラーが表示されます...ここにコードがありますが、作業。 plsヘルプ
File root = new File(Environment.getExternalStorageDirectory(), "/QuizApp/MyAnswer/"+sharedPreferenceUsername +"/"+ editTitle);
Uri uri = Uri.fromFile(root);
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.setType("*/*");
intent.putExtra(Intent.EXTRA_STREAM, uri);
startActivity(intent);
途中でeditTitleがファイルです。
ありがとうございます。私は何かを変更しなかったとしても、その奇妙なことが再び働いた – mime