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) {

      }
    }
  }
 public static void saveLocal(Bundle bundle) {
   store(bundle, local);
 }