【问题标题】:how to select multiple music files from device,and to save those selected files in some whare如何从设备中选择多个音乐文件,并将这些选定的文件保存在一些 whare 中
【发布时间】:2014-04-27 07:57:43
【问题描述】:

您好,我可以从手机中选择图像..使用通用加载 jar 文件..但现在我需要使用意图选择器选择音乐文件,我要去画廊,在那里我可以选择音乐文件,但在选择音乐文件后我需要将这些音乐文件保存在手机中的其他地方,但是如何保存那些我没有得到的选定音乐文件,有人建议我谢谢..

   public class MainActivity extends Activity {
         Button email;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    email=(Button)findViewById(R.id.button1);
    email.setOnClickListener(new OnClickListener() {

        public void onClick(View arg0) {
            // TODO Auto-generated method stub

            Intent intent = new Intent();
            intent.setType("audio/*");
            intent.setAction(Intent.ACTION_GET_CONTENT);
            startActivityForResult(Intent.createChooser(intent,"Select Audio "), 2);

        }
    });
}

【问题讨论】:

    标签: android android-emulator


    【解决方案1】:

    似乎没有办法在 API 19 以下选择多个文件。请参阅Select multiple files with Intent.ACTION_GET_CONTENT

    【讨论】:

      猜你喜欢
      • 2014-02-26
      • 1970-01-01
      • 2015-10-16
      • 2018-08-20
      • 1970-01-01
      • 2012-07-07
      • 2012-12-09
      • 2022-09-28
      • 2021-02-02
      相关资源
      最近更新 更多