相关疑难解决方法(0)

尝试使用intent打开android中的特定文件夹

我想在android中打开一个特定的文件夹?是否可以打开一个特定的文件夹???? 这是我正在使用的代码

    config=(Button)findViewById(R.id.btn_cf);

      config.setOnClickListener(new View.OnClickListener() 
      {         
            @Override
            public void onClick(View v)
            { 

            Intent intent = new Intent("Intent.ACTION_GET_CONTENT"); 
             Uri uri = Uri.parse("mnt/sdcard/myfiles/allfiles/download"); 
            intent.setDataAndType(uri, "*/*"); 
            startActivity(Intent.createChooser(intent, "download"));


            }
       });
Run Code Online (Sandbox Code Playgroud)

android android-intent

14
推荐指数
3
解决办法
3万
查看次数

标签 统计

android ×1

android-intent ×1