title: Can i display the CallLog numbers in my edittext? New here
body: <ul>
  <li>I have created a simple xml with one button and one edittext.</li>
  <li>Upon clicking the button, i can get into the CallLog page.</li>
  <li>Is it possible to display the selected numbers into my EditText, after i click on any numbers in my CallLog??</li>
  </ul>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:baselineAligned="true"
  android:orientation="horizontal" &gt;
  
  &lt;EditText
  android:id="@+id/edittext"
  android:layout_width="172dp"
  android:layout_height="wrap_content"
  android:layout_weight="0.29"
  android:hint="CONTACT NUMBER" &gt;
  
  &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  
  &lt;Button
  android:id="@+id/btn"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="CALL LOG" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Coding:</p>
  
  <pre><code>import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  
  public class CallLogRetrieveActivity extends Activity {
  
  Button myCallLogBtn;
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  
  myCallLogBtn=(Button)findViewById(R.id.btn);
  
  myCallLogBtn.setOnClickListener(new Button.OnClickListener(){
  
      public void onClick(View v) {
  
          Intent myIntent=new Intent();
          myIntent.setAction(Intent.ACTION_CALL_BUTTON);
          startActivity(myIntent);
  
      }});
  }
  }
  </code></pre>