Views 2155 Votes 0 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

android.jpg



# 내가 썼던 방법

if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.KITKAT) {
    Intent intent = new Intent();
    intent.setAction("android.settings.APP_NOTIFICATION_SETTINGS");
    intent.addCategory(Intent.CATEGORY_DEFAULT);
    //intent.setData(Uri.parse("package:" + getPackageName()));
    intent.putExtra("app_package", getPackageName());
    intent.putExtra("app_uid", getApplicationInfo().uid);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
}else{
    String packageName = "com.ncsoft.nccomix";
    String SCHEME = "package";
    String APP_PKG_NAME_21 = "com.android.settings.ApplicationPkgName";
    String APP_PKG_NAME_22 = "pkg";
    String APP_DETAILS_PACKAGE_NAME = "com.android.settings";
    String APP_DETAILS_CLASS_NAME = "com.android.settings.InstalledAppDetails";
    Intent intent = new Intent();
    final int apiLevel = Build.VERSION.SDK_INT;
    if (apiLevel >= 9) { // above 2.3
        intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
        Uri uri = Uri.fromParts(SCHEME, packageName, null);
        intent.setData(uri);
    } else { // below 2.3
        final String appPkgName = (apiLevel == 8 ? APP_PKG_NAME_22 : APP_PKG_NAME_21);
        intent.setAction(Intent.ACTION_VIEW);
        intent.setClassName(APP_DETAILS_PACKAGE_NAME,
APP_DETAILS_CLASS_NAME);
        intent.putExtra(appPkgName, packageName);
    }
    startActivity(intent);
}


# 참고할 방법 (해보지는 않음 ㅋㅋ)

packageName = "your.package.name.here"

try {
    //Open the specific App Info page:
    Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
    intent.setData(Uri.parse("package:" + packageName));
    startActivity(intent);

} catch ( ActivityNotFoundException e ) {
    //e.printStackTrace();

    //Open the generic Apps page:
    Intent intent = new Intent(android.provider.Settings.ACTION_MANAGE_APPLICATIONS_SETTINGS);
    startActivity(intent);

}


[참고] http://www.makeuseof.com/tag/stop-annoying-notifications-android/

[참고] http://stackoverflow.com/questions/4421527/how-can-i-start-android-application-info-screen-programmatically

?

List of Articles
No. Category Subject Author Date Views
1013 Develop [sh] 쉘스크립트 if 비교 연산 hooni 2020.05.26 59138
1012 Develop [sh] html 안에 있는 img 다운 받는 쉘 스크립트 file hooni 2020.05.26 633
1011 Algorithm [security] 블럭 암호에 대해서.. hooni 2013.04.23 17118
1010 Algorithm [security] RSA 암호화 설명과 예.. hooni 2013.04.23 16616
1009 System/OS [router] 시스코 라우터 명령어 모드.. hooni 2013.04.23 12944
1008 System/OS [router] 설정과 기본 명령어들 모음 hooni 2013.04.23 15670
1007 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 10949
1006 Develop [python][django] request.cookie 읽어오기 ㅋㅋㅋ (쓰기) hooni 2019.12.06 1684
1005 Develop [python] 파이썬 공부하는 사이트~ hooni 2013.11.12 10835
1004 Develop [python] 파라미터 앞에 *, ** 의 의미? (*args, **kwargs) hooni 2019.11.22 1549
1003 Develop [python] 애니팡, 캔디팡 매크로 file hooni 2013.09.06 17305
1002 Develop [python] DJI Tello 드론 코딩 (프로그래밍) 58 file hooni 2018.03.04 25741
1001 PPT [ppt] 정보보호관리 발표내용 #2 file hooni 2016.12.08 1060
1000 PPT [ppt] 정보보호관리 발표내용 file hooni 2016.11.30 1070
999 PPT [ppt] 전자금융보안론 발표/설치 자료 file hooni 2016.05.03 1313
998 PPT [ppt] 웜프레임워크 발표 양식(국보연) file hooni 2013.04.23 17016
Board Pagination Prev 1 ... 9 10 11 12 13 ... 74 Next
/ 74