Click here to Skip to main content
15,868,306 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i want to play video from external sd card in android App..
its not support for all device.. my video format is mp4.

please help me out..


i am trying this code
its only working on micromax A2900 device

Intent intent = new Intent(Intent.ACTION_VIEW);
File sdCard = Environment.getExternalStorageDirectory();
File file = new File(sdCard, "/readvideo/faithclassvideo1.mp4");
intent.setDataAndType(Uri.fromFile(file), "video/*");
startActivity(intent);
Posted
Updated 20-Apr-15 21:53pm
v2
Comments
Sergey Alexandrovich Kryukov 21-Apr-15 10:15am    
And what happens on other devices? Can you just manually start video on them?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900