title: Storing secure data in android
body: <p>I am using OAuth 2 for login in my android app. Username and password are not stored on the device. However I have included three string parameters in the source code itself inside a class Constants.</p>
  
  <pre><code>public class Constants{
  public static String redirectUri = "http://someurl/users/me";
  public static String clientId = "my-android-app";
  public static String clientSecret =    "asdfasf";
  
  }
  </code></pre>
  
  <p>I access these parameters during login using Constants.clientId. My question is is my way of storing data secure? Do I have to encrypt these 3 datas. I cannot store these data in shared preference or database because in rooted device this data can be viewed. </p>