当我点击按钮时,程序询问我想要使用哪个文件管理器(或Dropbox等)。然后我选择,例如,.mp3文件。我怎么能告诉我的程序启动这个.mp3,什么时候我需要它?如何记住这个选择的文件?
<ul>
<li>
<ol>
<li>Start with the function keyword</li>
<li>Inputs go between ()</li>
<li>Actions go between {}</li>
<li>jQuery is for chumps!</li>
</ol>
<ol>
<li>Start with the function keyword</li>
<li>Inputs go between ()</li>
<li>Actions go between {}</li>
<li>jQuery is for chumps!</li>
</ol>
<ol>
<li>Start with the function keyword</li>
<li>Inputs go between ()</li>
<li>Actions go between {}</li>
<li>jQuery is for chumps!</li>
</ol>
<ol>
<li>Start with the function keyword</li>
<li>Inputs go between ()</li>
<li>Actions go between {}</li>
<li>jQuery is for chumps!</li>
</ol>
</li>
<li>Inputs are separated by commas.</li>
<li>Inputs can include other functions!</li>
</ul>
答案 0 :(得分:0)
试试这个
Uri myUri = Uri.parse(entry.getFile());
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(myUri, "audio/*");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);