I share a video on facebook with intents. But is there a way to find out if the video is posted? The only feedback on a real device is a beep! I share with this:
Intent intentShareFile = new Intent(Intent.ACTION_SEND);
intentShareFile.setType("video/mp4");
intentShareFile.putExtra(Intent.EXTRA_STREAM, uri);
startActivityForResult(Intent.createChooser(intentShareFile, "Share File"), 1);
I check with this idea..:
if (requestCode!=1) {
if (resultCode == RESULT_OK) {
Toast.makeText(getApplicationContext(), "Video has been shared", Toast.LENGTH_LONG).show();
} else if (resultCode == RESULT_CANCELED) {
Toast.makeText(getApplicationContext(), "Something went wrong", Toast.LENGTH_LONG).show();
}
}
Aucun commentaire:
Enregistrer un commentaire