It seems like every example I can find of switching between activities involves creating an Intent and passing in the context of a View via an OnClickListener associated wit
Use PreferenceChangeListener :)
when ever u want to switch activity . u can call these code .
Intent intent = new Intent(this, MyActivity.class); startActivity(intent);
You can write this code in PreferenceChangeListener.