1

/mnt/sdcard/Android/data/com.sec.example内にある動画を YouTube に共有できないという、この非常に奇妙な問題に直面しています。それは私のアプリケーションにローカルに保存されています。動画をこのフォルダの外 ( /mnt/sdcard/Android/... ) にコピーすると、YouTube 経由で共有できます。

この問題はYoutubeでのみ発生します。Gmail、DropBox、Facebook、Bluetooth などの他のアプリケーションを介した共有は、すべての場合に問題なく機能します。

何が問題なのですか?

4

1 に答える 1

0

これは、共有ファイルのコードの写真です

Intent intent=new Intent(android.content.Intent.ACTION_SEND);
intent.setType("text/plain");
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);

// Add data to the intent, the receiving app will decide what to do with it.
intent.putExtra(Intent.EXTRA_SUBJECT, “Some Subject Line”);
intent.putExtra(Intent.EXTRA_TEXT, “Body of the message, woot!”);

startActivity(Intent.createChooser(intent, “How do you want to share?”));
于 2013-04-02T13:45:24.030 に答える