Views 2157 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

?

  1. [asp] 기본 문법과 제어문

    Date2013.04.23 CategoryDevelop Byhooni Views7076
    Read More
  2. [asp] 문자열 관련 함수 요약

    Date2013.04.23 CategoryDevelop Byhooni Views7780
    Read More
  3. [asp] 문자열 넘겨받기 (get,post)

    Date2013.04.23 CategoryDevelop Byhooni Views8679
    Read More
  4. [asp] 폼 메일 소스

    Date2013.04.23 CategoryDevelop Byhooni Views7352
    Read More
  5. [asp] 폼메일 예제와 메일 포워딩 프로그램

    Date2013.04.23 CategoryDevelop Byhooni Views7129
    Read More
  6. [c#] BFilter 툴바 소스 코드 ㅎㅎ

    Date2013.04.23 CategoryDevelop Byhooni Views7606
    Read More
  7. [c#] BHO 한샘툴바랑 동현툴바..

    Date2013.04.23 CategoryDevelop Byhooni Views2208
    Read More
  8. [c#] Hashtable <-> Json (dll 포함)

    Date2013.04.23 CategoryDevelop Byhooni Views80652
    Read More
  9. [c#] HTML 이벤트 샘플 소스..

    Date2013.04.23 CategoryDevelop Byhooni Views7735
    Read More
  10. [c#] Json 라이브러리 (System.Net.Json.dll)

    Date2013.04.23 CategoryDevelop Byhooni Views58534
    Read More
  11. [C#] MD5, SHA1 해시 & 인코딩

    Date2013.04.23 CategoryDevelop Byhooni Views77855
    Read More
  12. [c#] mfc 기반의 웹서비스 서버/클라이언트 샘플과 예제 소스

    Date2013.04.23 CategoryDevelop Byhooni Views2073
    Read More
  13. [c#] MS IE(Internet Explorer) 툴바 버튼 예제 2003/2005 두가지 버전

    Date2013.04.23 CategoryDevelop Byhooni Views2090
    Read More
  14. [c#] 간단한 IPC 통신 예제

    Date2013.04.23 CategoryDevelop Byhooni Views63726
    Read More
  15. [c#] 간단한 소켓통신 예제..

    Date2013.04.23 CategoryDevelop Byhooni Views26690
    Read More
  16. [c#] 본현이형 논문 자료 (HIDS)ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views8135
    Read More
Board Pagination Prev 1 3 4 5 6 7 ... 53 Next
/ 53