Android 6.0 MarshamalloRuntime Permission SystemStep 1: check the platform, Build.VERSION.SDK_INT >= Build.VERSION_CODES.MStep 2: check the permission status, checkSelfPermission(),只可能返回两种状态:已授权,未授权;不存在“未请求”状态;
关注时代Java