예제 #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);
 }