摘要: ActivityCompat.requestPermissions(MainActivity.this, new String[]{ Manifest.permission.CAMERA, Manifest.permission.READ_PHONE_STATE, Manifest.permissi 阅读全文
posted @ 2018-05-07 19:47 Ars灬木子 阅读(128) 评论(0) 推荐(0) 编辑
摘要: // 系统状态栏透明if (Build.VERSION.SDK_INT >=21){ View decorView = getWindow().getDecorView(); int option = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View 阅读全文
posted @ 2018-05-07 19:18 Ars灬木子 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 导入libiary 阅读全文
posted @ 2018-05-07 17:15 Ars灬木子 阅读(523) 评论(0) 推荐(0) 编辑
摘要: Intent intent = new Intent(Intent.ACTION_INSERT);intent.setType("vnd.android.cursor.dir/person");intent.setType("vnd.android.cursor.dir/contact");inte 阅读全文
posted @ 2018-05-07 16:02 Ars灬木子 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 添加权限 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="htt 阅读全文
posted @ 2018-05-07 15:47 Ars灬木子 阅读(327) 评论(0) 推荐(0) 编辑
摘要: import android.content.Intent;import android.net.Uri;import android.os.Bundle;import android.provider.MediaStore;import android.support.v7.app.AppComp 阅读全文
posted @ 2018-05-07 15:37 Ars灬木子 阅读(287) 评论(0) 推荐(0) 编辑