コード例 #1
0
  public static void saveGlobal() {

    Bundle bundle = null;

    if (saveNeeded) {

      bundle = new Bundle();
      store(bundle, global);

      try {
        OutputStream output = Game.instance.openFileOutput(BADGES_FILE, Game.MODE_PRIVATE);
        Bundle.write(bundle, output);
        output.close();
        saveNeeded = false;
      } catch (IOException e) {

      }
    }
  }
コード例 #2
0
 public static void saveLocal(Bundle bundle) {
   store(bundle, local);
 }