어플이 최초 실행되면

SharedPreferences 로 어플을 초기 셋팅하려고 합니다.

종료 됐다가 다시 실행되면, 다시 실행되면 안되지요...


  public final void onPriceSetting() {
  final SharedPreferences pref = getSharedPreferences("TAG", Activity.MODE_PRIVATE);
  final SharedPreferences.Editor editor = pref.edit();
  editor.putString("test1", "test");  
  editor.commit();
 }

 

 

대충 뭐 요런 메소드 입니다.

-_-; 근데 프로그램 종료 했다가 켜도

다시 실행되네요...

 

어떻게...방법이 없을까요??