Create an android XML in /res/values and add the string tag with the name and its value. <string name="user_name">USERNAME</string> <string name="user_pwd">PASSWORD</string>
You can get the same from R.string.user_name and R.string.user_pwd. String myuser= R.string.user_name ; String mypassword= R.string.user_pwd;