Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by furqi ( 13 years ago )
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
if (resultCode == RESULT_OK) {
if (requestCode == REQUEST_VIDEO_CAPTURED) {
uriVideo = data.getData();
Toast.makeText(AndroidIntentVideoRecording.this,
uriVideo.getPath(), Toast.LENGTH_LONG).show();
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("video/3gp");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Video");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(uriVideo.getPath()));
sendIntent.putExtra(Intent.EXTRA_TEXT, "Enjoy the Video");
startActivity(Intent.createChooser(sendIntent, "Email:"));
}
} else if (resultCode == RESULT_CANCELED) {
uriVideo = null;
Toast.makeText(AndroidIntentVideoRecording.this, "Cancelled!",
Toast.LENGTH_LONG).show();
}
Revise this Paste