Android: User input on image
<p>I am trying to add user input on a selected image. So far I am able to select the image, then the keypad of the emulator comes up but the text is not added on the image. Following is the code. Could anyone please help me figure it out? Thanks!</p>

<pre><code>public class FullImageActivity extends Activity implements OnClickListener {
private EditText textArea;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.full_image);

    // get intent data
    Intent i = getIntent();

    // Selected image id

    int position = i.getExtras().getInt("id");      
    ImageAdapter imageAdapter = new ImageAdapter(this);     
    ImageView imageView = (ImageView) findViewById(R.id.full_image_view);        
    imageView.setImageResource(imageAdapter.mThumbIds[position]);
    textArea = (EditText)findViewById(R.id.ascii_text);


}

@Override
public void onClick(View arg0) {
    textArea.setText("");
    textArea.getText();
} }
</code></pre>

<p>full_image.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="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" &gt;  

&lt;ImageView android:id="@+id/full_image_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"/&gt;

&lt;EditText
    android:id="@+id/ascii_text"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="#000000"
    android:gravity="center|left"
    android:hint=""
    android:inputType="textMultiLine"
    android:lines="10"
    android:maxLines="10"
    android:minLines="10"
    android:singleLine="false"
    android:textColor="#ffffff"
    android:typeface="monospace" /&gt; 

&lt;/LinearLayout&gt;
</code></pre>
