Yes you can do it.
For example, you can do something as shown below to create an SP
SharedPreferences prefs = getSharedPreferences("countPref", Context.MODE_PRIVATE);
If you look, then countPref used to uniquely determine sharedPref. Thus, you can take advantage of another general advantage, as shown below, and use it.
SharedPreferences prefs = getSharedPreferences("countPrefTwo", Context.MODE_PRIVATE); SharedPreferences prefs = getSharedPreferences("countPrefThree", Context.MODE_PRIVATE);
Good luck
source share