タグ

ブックマーク / pastie.org (2)

  • #1053382 - Pastie

    public static void deleteSharedPreferences(Context appContext) { try { ApplicationInfo info = appContext.getPackageManager() .getApplicationInfo(appContext.getPackageName(), 0); String dirPath = info.dataDir + File.separator + "shared_prefs" + File.separator; File dir = new File(dirPath); if (dir.exists() && dir.isDirectory()) { String[] list = dir.list(); int size = list.length; for (int i = 0; i

    pipo
    pipo 2010/07/21
    public static void deleteSharedPreferences(Context appContext) { try { ApplicationInfo info = appContext.getPackageManager() .getApplicationInfo(appContext.getPackageName(), 0); String dirPath = info.dataDir + File.separator + "shared_prefs" + File.separator; File dir = new File
  • #686581 - Pastie

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 /* * defaultのHOMEアプリのパッケージ名を返します. * * default設定されていない場合(ホームキーを押すと毎回選択画面が出るようにしている場合)は, * 空の文字列を返します * */ private String searchDefaultHomeApplication(){ String defaultHomeApplicationPkgName = ""; /* pr

    pipo
    pipo 2009/11/07
  • 1