From bee3292c966e313152f5459ec30e0c6439d9c108 Mon Sep 17 00:00:00 2001 From: client_Hale <339726288@qq.com> Date: 星期三, 06 十一月 2019 13:56:22 +0800 Subject: [PATCH] update 支持安卓高版本 逍遥模拟器安装 去除多余的头条 热云配置 --- Project/ky_sdk/src/main/java/com/secondworld/univeralsdk/MainActivity.java | 86 +++++++++++++++++++++--------------------- 1 files changed, 43 insertions(+), 43 deletions(-) diff --git a/Project/ky_sdk/src/main/java/com/secondworld/univeralsdk/MainActivity.java b/Project/ky_sdk/src/main/java/com/secondworld/univeralsdk/MainActivity.java index a1a6fe3..5d189a8 100644 --- a/Project/ky_sdk/src/main/java/com/secondworld/univeralsdk/MainActivity.java +++ b/Project/ky_sdk/src/main/java/com/secondworld/univeralsdk/MainActivity.java @@ -143,49 +143,49 @@ super.onResume(); - // 妫�娴嬫湰鍦板瓨鍌ㄦ潈闄愭槸鍚︽湁, 娌℃湁鐨勮瘽瑕佹彁绀虹敤鎴� - if (PermissionChecker.checkPermission(this, - Manifest.permission.WRITE_EXTERNAL_STORAGE, - Process.myPid(), Process.myUid(), - getPackageName()) != PackageManager.PERMISSION_GRANTED - || PermissionChecker.checkPermission(this, - Manifest.permission.READ_EXTERNAL_STORAGE, - Process.myPid(), Process.myUid(), - getPackageName()) != PackageManager.PERMISSION_GRANTED) - { - new AlertDialog.Builder(this) - .setMessage("搴旂敤娌℃湁瀛樺偍璇诲彇鏉冮檺,鐐瑰嚮纭畾鑷宠缃腑寮�鍚�,鍚﹀垯鏃犳硶缁х画娓告垙.") - .setCancelable(false) - .setPositiveButton("纭畾", - new DialogInterface.OnClickListener() - { - @Override - public void onClick(DialogInterface dialogInterface, - int i) - { - UniversalUtil.hasGoToSetting = true; - Intent intent = new Intent( - Settings.ACTION_APPLICATION_DETAILS_SETTINGS); - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - Uri uri = Uri.fromParts("package", - getPackageName(), - null); - intent.setData(uri); - startActivity(intent); - } - }) - .setNegativeButton("鎷掔粷", - new DialogInterface.OnClickListener() - { - @Override - public void onClick(DialogInterface dialogInterface, - int i) - { - finish(); - } - }) - .show(); - } +// // 妫�娴嬫湰鍦板瓨鍌ㄦ潈闄愭槸鍚︽湁, 娌℃湁鐨勮瘽瑕佹彁绀虹敤鎴� +// if (PermissionChecker.checkPermission(this, +// Manifest.permission.WRITE_EXTERNAL_STORAGE, +// Process.myPid(), Process.myUid(), +// getPackageName()) != PackageManager.PERMISSION_GRANTED +// || PermissionChecker.checkPermission(this, +// Manifest.permission.READ_EXTERNAL_STORAGE, +// Process.myPid(), Process.myUid(), +// getPackageName()) != PackageManager.PERMISSION_GRANTED) +// { +// new AlertDialog.Builder(this) +// .setMessage("搴旂敤娌℃湁瀛樺偍璇诲彇鏉冮檺,鐐瑰嚮纭畾鑷宠缃腑寮�鍚�,鍚﹀垯鏃犳硶缁х画娓告垙.") +// .setCancelable(false) +// .setPositiveButton("纭畾", +// new DialogInterface.OnClickListener() +// { +// @Override +// public void onClick(DialogInterface dialogInterface, +// int i) +// { +// UniversalUtil.hasGoToSetting = true; +// Intent intent = new Intent( +// Settings.ACTION_APPLICATION_DETAILS_SETTINGS); +// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); +// Uri uri = Uri.fromParts("package", +// getPackageName(), +// null); +// intent.setData(uri); +// startActivity(intent); +// } +// }) +// .setNegativeButton("鎷掔粷", +// new DialogInterface.OnClickListener() +// { +// @Override +// public void onClick(DialogInterface dialogInterface, +// int i) +// { +// finish(); +// } +// }) +// .show(); +// } } @Override -- Gitblit v1.8.0