title: changing string value displayed in scrollView
body: <p>first I would like to say thank you to every one out here as i am a nOOb and have learned a lot just by reading questions and answers that you post. I am trying to pass a great deal of text to the end users and while being able to do this with new classes and .xml files this is becoming cumbersome. i thought of stream lining the app by just having a single xml layout for a particular set of text strings and just change the @string/????? via button onclick and setText but have learned that I can not change the initial value of @string in an xml file. question is that TRUE? and is there a more efficient way to do this ie (setting android:text to a var and setting var in java to a particular string) or do i need a new xml layout for each string? (that's a lots of waste if you ask me) and a little insight, there are at this time approx 250 different strings with min 5 paragraphs and growing.</p>
  
  <p>here is my code thus far.</p>
  
  <p>snippet of first java</p>
  
  <pre><code>import android.app.Activity;
  import android.content.Intent;
  import android.media.MediaPlayer;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.widget.TextView;
  
  public class Monlt extends Activity{
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      setContentView(R.layout.monolt);
  
  
      final MediaPlayer buttonsound = MediaPlayer.create(Monlt.this, (R.raw.buttonclick));
  
  
              Button button1 = (Button) findViewById(id.button1);
              Button button2 = (Button) findViewById(id.button2);
              Button button3 = (Button) findViewById(id.button3);
              Button button4 = (Button) findViewById(id.button4);
              Button button5 = (Button) findViewById(id.button5);
              Button button6 = (Button) findViewById(id.button6);
              Button button7 = (Button) findViewById(id.button7);
              Button button8 = (Button) findViewById(id.button8);
              Button button9 = (Button) findViewById(id.button9);
              Button button11 = (Button) findViewById(id.button11);
              Button button12 = (Button) findViewById(id.button12);
              Button button13 = (Button) findViewById(id.button13);
              Button button14 = (Button) findViewById(id.button14);
              Button button15 = (Button) findViewById(id.button15);
              Button button16 = (Button) findViewById(id.button16);
              Button button17 = (Button) findViewById(id.button17);
              Button button18 = (Button) findViewById(id.button18);
              Button button19 = (Button) findViewById(id.button19);
              Button button21 = (Button) findViewById(id.button21);
  
              button1.setOnClickListener(new View.OnClickListener() {
  
                  public void onClick(View v) {
                      // TODO Auto-generated method stub
                      buttonsound.start();
                      final TextView mview = (TextView) findViewById(R.id.solayout2); 
                      mview.setText("mono1"); //this was my first string to pass
                      startActivity(new Intent("com.nvar.Sorders.Mono.ASO1"));
  
                  }
  
              });
  
              button2.setOnClickListener(new View.OnClickListener() {
  
                  public void onClick(View v) {
                      // TODO Auto-generated method stub
                      buttonsound.start();
                      startActivity(new Intent("com.nvar.Sorders.ASO1"));
                      final TextView mview = (TextView) findViewById(R.id.solayout2); 
                      mview.setText("@string/mono2");/this is the second string to pass
                  }
              });
                  `
  </code></pre>
  
  <p>now this code works when i remove the 2 text view lines in the onclick 
  so then it call another class Aso1 that I would like to keep in place for later use. 
  Aso1 java code
  `
      package com.nvar.Sorders.Mono;</p>
  
  <pre><code>import com.nvar.Sorders.R;
  
  
  import android.app.Activity;
  import android.os.Bundle;
  
  public class Aso1 extends Activity   {
  
  
  
  // Called when the activity is first created.
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.solayout2);
  
  
  }
  }
  </code></pre>
  
  <p>`</p>
  
  <p>and then the first xml</p>
  
  <p>`
      
      </p>
  
  <pre><code>    &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;TextView
              android:id="@+id/solayout2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="mview"/&gt;
  
   &lt;!--            android:text="@string/monoaso1"/&gt;   
   --&gt;
   &lt;!--  this is were i was playing with the strings  /&gt;
   --&gt;        
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>`
  any help in this matter would be greatly appreciated, and remember "noob" to java / android! so if there is a sample of what i could or should be looking at, don't hesitate to smack me in the head and point me in the right direction. i don't mind reading :) 
  thanks again. </p>