I tried the following code. But unable to play mp4 files using ACTION_VIEW. But I am able to play m4v files. How to play mp4 files.
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.parse(filePath);
intent.setDataAndType(data, "video/*");
startActivity(intent);
Thanks Sunil Kumar Sahoo
I found the issue is with streaming of video file with certain file types. http://developer.android.com/guide/appendix/media-formats.html
I found the alternate solution as to down fiel into sdcard and then play the file from SD-Card
Thanks Sunil Kumar Sahoo