码迷,mamicode.com
首页 > 其他好文 > 详细

temp

时间:2017-05-24 00:42:09      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:comm   cal   tty   return   nbsp   tin   value   blog   document   

 

 

    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

标签:comm   cal   tty   return   nbsp   tin   value   blog   document   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!