Try this code, it is working:
File file=new File(Environment.getExternalStorageDirectory()+"/testvideo.mp4");
try {
Request audioRequest = Request.newUploadVideoRequest(session, file, new Request.Callback() {
@Override
public void onCompleted(Response response) {
// TODO Auto-generated method stub
if(response.getError()==null)
{
Toast.makeText(MainActivity.this, "Video Shared Successfully", Toast.LENGTH_SHORT).show();
}
else
{
Toast.makeText(MainActivity.this, response.getError().getErrorMessage(), Toast.LENGTH_SHORT).show();
}
}
});
audioRequest.executeAsync();
} catch (Exception e) {
e.printStackTrace();
}