title: Android setText is not working
body: <p>SetText is not working for an editText. i change the edittext id, name etc. but its not working. can anyone help me?</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_message);
  
      buttonContact = (Button) findViewById(R.id.imageButton1);
      buttonSend = (Button) findViewById(R.id.imageButton2);
      textPhoneN = (EditText)findViewById(R.id.editText1);
      textSMS = (EditText) findViewById(R.id.editTextSMS);
  
      /////////// for set message into compose window
      textPhoneN.setText("sdf");
    }
  </code></pre>
  
  <p>textPhoneN is not set any text in oncreate().</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/linearLayout1"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="#6666E0"
  android:gravity="end"
  android:orientation="vertical" &gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical" &gt;
  
      &lt;EditText
          android:id="@+id/editText1"
          android:layout_width="match_parent"
          android:layout_height="35dp"
          android:layout_marginBottom="5dp"
          android:layout_marginLeft="5dp"
          android:layout_marginRight="5dp"
          android:layout_marginTop="5dp"
          android:background="#ffffff"
          android:hint="To"
          android:inputType="text|phone" &gt;
  
          &lt;requestFocus /&gt;
      &lt;/EditText&gt;
  
  
  
  
      &lt;Button
          android:id="@+id/imageButton1"
          style="?android:attr/buttonStyleSmall"
          android:layout_width="116dp"
          android:layout_height="30dp"
          android:layout_marginBottom="5dp"
          android:layout_marginLeft="5dp"
          android:background="#00004C"
          android:text="Add Contact"
          android:textColor="#ffffff"
          android:textSize="18sp" /&gt;
  
      &lt;EditText
          android:id="@+id/editTextSMS"
          android:layout_width="match_parent"
          android:layout_height="240dp"
          android:layout_marginBottom="10dp"
          android:layout_marginLeft="5dp"
          android:layout_marginRight="5dp"
          android:layout_marginTop="20dp"
          android:background="#ffffff"
          android:ems="10"
          android:gravity="top"
          android:hint="Message"
          android:inputType="textMultiLine"
          android:lines="5" /&gt;
  
      &lt;Button
          android:id="@+id/imageButton2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
  
          android:layout_weight="1"
          android:background="#00004C"
          android:text="Send"
          android:textColor="#ffffff" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I follow your suggestion but still no result </p>