title: How to add a value to a Toast, from a Edittext (with button)
body: <p>I searched the web, but couldn't find a solution. I found several codes but I have some problems to implement it in my code. Hope you guys know what I'm messing up here.</p>
  
  <blockquote>
    <p>I'm creating an SMS app, where you choose from a spinner (which preloads
    a txt) and you can continue the text from an edittextfield and press
    the button to send the SMS. Working great but now I would like the toast to
    contain what the user wrote in the field.I can create a normal Toast where I can write my own text. If you look at case 1 you can see where I wrote <code>value_edittextfield</code> (just so you can see where the value should be) and  <code>String nrforanvandare</code> is the EditTextField.</p>
  </blockquote>
  
  <p>I really hope there is a solution, because it would be so awesome. </p>
  
  <pre><code> spinneruse.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
              @Override
              public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
                  switch (position) {
  
  
  
  
  
  
  
  
  
                      case 0 :
                          skickatelBTN.setOnClickListener(new View.OnClickListener() {
                                                              @Override
                                                              public void onClick(View v) {
  
  
                                                              }
  
                                                          }
                          );
  
  
  
  
  
  
                      case 1 :
                          skickatelBTN.setOnClickListener(new View.OnClickListener() {
                                                            @Override
                                                            public void onClick(View v) {
                                                                String myMsgnruta = tele1txt.getText().toString();
                                                                String theNumberr = nyanumtxt.getText().toString();
                                                                String nrforanvandare = nrrutaforspinner.getText().toString();
                                                                sendMsg(theNumberr, myMsgnruta + nrforanvandare);
                                                                Toast.makeText(getActivity(), "value_Edittextfield. sent",
                                                                        Toast.LENGTH_LONG).show();
                                                            }
  
                                                        }
                          );
                          break;
  </code></pre>