2013-12-18 32 views

回答

2

試試下面的代碼

File file=new File(filepath); 
Uri uriToFile=Uri.fromFile(file); 

Intent shareIntent = new Intent(); 
shareIntent.setAction(Intent.ACTION_SEND); 
shareIntent.putExtra(Intent.EXTRA_STREAM, uriToFile); 
shareIntent.setType("*/mp4"); 
startActivity(Intent.createChooser(shareIntent,"Send to")); 
相關問題