title: how to getpreferences in other activity
body: <p>I made a shared preferences for my seekbar and my togglebutton in one activity but what I can't do is how to get this preferences into other activity so when I change the seekbar all the textsize in all activities will change and when I toggle the button all the colors of textview and layouts will change in other activity</p>
  
  <pre><code>public class CollectionPrayersTextActivity extends Activity {
  
  // Colors Shared Preferences
  public SharedPreferences tprefs;
  private ToggleButton toggle;
  private LinearLayout linear;
  // Text Size Shared Preferences
  private SharedPreferences prefs;
  public static TextView textview;
  private SeekBar seekbar;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // Remove title bar
      this.requestWindowFeature(Window.FEATURE_NO_TITLE);
      // Remove notification bar
      this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
              WindowManager.LayoutParams.FLAG_FULLSCREEN);
      Window window = getWindow();
      // Unlock the device if locked
      window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
      // Turn screen on if off
      window.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
      // Keep screen on
      window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
      // Transition between activities
      overridePendingTransition(R.anim.incoming, R.anim.outgoing);
      // On Create
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_collectionprayers_text);
      // Determine The Tools
      seekbar = (SeekBar) findViewById(R.id.seekBarcollectionprayerstext);
      textview = (TextView) findViewById(R.id.id_collectionprayers_txt);
      toggle = (ToggleButton) findViewById(R.id.toggleButton1);
      linear = (LinearLayout) findViewById(R.id.linearcollection);
      // Toogle Share Preferences
      SharedPreferences tprefs = getSharedPreferences(
              "com.e_orthodoxy.orthodox_prayers", MODE_PRIVATE);
      toggle.setChecked(tprefs.getBoolean("Switchable", true));
      if (toggle.isChecked()) {
          textview.setTextColor(Color.WHITE);
          linear.setBackgroundColor(Color.BLACK);
          textview.setShadowLayer(0, 0, 0, Color.WHITE);
  
      } else {
  
          textview.setTextColor(Color.BLACK);
          linear.setBackgroundColor(Color.WHITE);
          textview.setShadowLayer(0, 0, 0, Color.BLACK);
  
      }
      // Get Extra From Another Activity
      Intent n = getIntent();
      String mrng = n.getStringExtra("key");
      textview.setText(Html.fromHtml(mrng));
      // SeekBar Preferences
      prefs = getPreferences(MODE_PRIVATE);
      float fs = prefs.getFloat("fontsize", 40);
      seekbar.setProgress((int) fs);
      textview.setTextSize(TypedValue.COMPLEX_UNIT_PX, seekbar.getProgress());
      // Programming SeekBar
      seekbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
  
          @Override
          public void onStopTrackingTouch(SeekBar seekBar) {
              prefs = getPreferences(MODE_PRIVATE);
              SharedPreferences.Editor ed = prefs.edit();
              ed.putFloat("fontsize", textview.getTextSize());
              ed.commit();
          }
  
          @Override
          public void onStartTrackingTouch(SeekBar seekBar) {
  
          }
  
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress,
                  boolean fromUser) {
              textview.setTextSize(TypedValue.COMPLEX_UNIT_PX, progress);
          }
      });
      // Programming ToggleButton
      toggle.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              if (toggle.isChecked()) {
                  textview.setTextColor(Color.WHITE);
                  linear.setBackgroundColor(Color.BLACK);
                  textview.setShadowLayer(0, 0, 0, Color.WHITE);
                  SharedPreferences.Editor editor = getSharedPreferences(
                          "com.e_orthodoxy.orthodox_prayers", MODE_PRIVATE)
                          .edit();
                  editor.putBoolean("Switchable", true);
                  editor.commit();
  
              } else {
  
                  textview.setTextColor(Color.BLACK);
                  linear.setBackgroundColor(Color.WHITE);
                  textview.setShadowLayer(0, 0, 0, Color.BLACK);
                  SharedPreferences.Editor editor = getSharedPreferences(
                          "com.e_orthodoxy.orthodox_prayers", MODE_PRIVATE)
                          .edit();
                  editor.putBoolean("Switchable", false);
                  editor.commit();
  
              }
          }
      });
  }
  
  public void c_default(View V) {
      textview.setTextColor(getResources().getColor(R.color.Vanilla));
      linear.setBackgroundColor(getResources().getColor(R.color.Maroon));
      textview.setShadowLayer((float) 1.5, 2, 2, Color.BLACK);
  }
  
  @Override
  public void onBackPressed() {
      Intent intent_e3tiraf_back = new Intent(
              CollectionPrayersTextActivity.this,
              CollectionPrayersActivity.class);
      startActivity(intent_e3tiraf_back);
      finish();
  }
  }
  </code></pre>
  
  <p>any help????</p>