首页 > 其他 > 详细

temp

时间:2017-05-24 00:12:31      阅读:406      评论:0      收藏:0      [点我收藏+]

 

 

    public boolean isUriReturnedForThirdApp() {
        String action = getIntent().getAction();
        if (action != null) {
            return action.equals(Intent.ACTION_GET_CONTENT)
                    || action.equals(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
        } else {
            return false;
        }
    }

 

    private void selectFile() {
        Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
        intent.addCategory(Intent.CATEGORY_OPENABLE);
        intent.setType("text/comma-separated-values");
        intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
        startActivityForResult(intent, CODE_SELECT_FILE);
    }

 

temp

原文:http://www.cnblogs.com/muhe221/p/6896836.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!