title: get back sharedpreferences after delete and install app
body: <p>hi friend i am trying to make game and i need to create demo version of my game
  <p>i need a button that when users click  on it the game run but just 3 time.
  <p>after 3 time users clicked on button the app show message "you should buy the game"
  <p>i used sharedpreferences . after 3 click on button the game show  message but when user delete app and  install it again , game not show message and run game.<p> are there any ways to save sharedpreferences after delete app ?
  this is my code :
                             <pre>     Button frist = ((Button)findViewById(R.id.test));
                 final SharedPreferences check = getSharedPreferences("check",MODE_PRIVATE);
                 final Editor edit = check.edit();</p>
  
  <code>    frist.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
  
              if(check.getInt("check1",0)&lt;3){
              Intent intent = new Intent(MainActivity.this,choose_name.class
                      );
              startActivity(intent);
              edit.putInt("check1", check.getInt("check1",0)+1).commit();
  
  
              }
  
  
          }
      });
  </code></pre>
  
  <p>edit : friend im trying to write a file and save my setting into it , can i save my file in any directory that users cant see it and my file dont delete after user delete app and i dont need to use  permission?</p>