Views 2280 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
697 Develop [js] 후리자(영규) 스타일들.. file hooni 2013.04.23 7177
696 Develop [js] 핫키(단축키) 구현방법 hooni 2003.04.23 7652
695 Develop [js] 한글주소(URL) 인코딩(encode, Encoding), 자바스크립트(JavaScript) hooni 2013.04.23 11345
694 Develop [js] 한글문서로 된 259가지 자바스크립트 예제파일 file hooni 2013.04.23 6776
693 Develop [js] 폼(form) 전송시 중복 클릭 방지 간단한 구문 hooni 2013.04.23 9327
692 Develop [js] 파이어폭스(Firefox;F/F)에서 outerHTML 작동하도록 만든 메소드 hooni 2013.04.23 16467
691 Develop [js] 툴팁.. 좋은거.. (tooltip) file hooni 2013.04.23 7077
690 Develop [js] 키보드 아스키코드(ASCII) 코드보기 hooni 2003.04.23 32506
689 Develop [js] 키보드 아스키 코드 확인하는 간단한 소스 hooni 2003.04.23 7790
688 Develop [js] 큐 형식으로 배열사용.. ㅋㅋ hooni 2013.04.23 7043
687 Develop [js] 쿠키(cookie)에 대한 설명과 예제.. hooni 2003.04.23 8346
686 Develop [js] 초간단 현재 사이트 쿠키 확인하는 명령~ hooni 2003.04.23 7341
685 Develop [js] 초간단 암호화/복호화 소스.. hooni 2003.04.23 8872
684 Develop [js] 주소표시줄 URL 읽어오기 (변경까지) secret hooni 2014.01.21 1
683 Develop [js] 주민번호 생성기.. file hooni 2003.04.23 8170
682 Develop [js] 좋은 강연자료 & UI 자료 hooni 2014.10.06 985
Board Pagination Prev 1 ... 8 9 10 11 12 ... 53 Next
/ 53