Sms Inbox - TextView
<p>Hello i am created Sms app witch shows me content of Inbox.I am using TextView but there is problem with screen.I can't see all sms but only sms of screen size.. I can't scroll down.How can i see all sms with scroll down / up? Or is it supported on TextView?
Sorry for my english i am czech .
Thanks</p>

<p>Source code:</p>

<pre><code>import android.app.Activity;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.widget.TextView;

    public class Mynew extends Activity {

      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          TextView view = new TextView(this);
          Uri uriSMSURI = Uri.parse("content://sms/inbox");
          Cursor cur = getContentResolver().query(uriSMSURI, null, null, null, null);
          String sms = "";
          while (cur.moveToNext()) {
              String address = cur.getString(cur.getColumnIndex("address"));
              String body = cur.getString(cur.getColumnIndexOrThrow("body"));
              sms += "From :" + address  + " : " + body+"\n";         
          }
          view.setText(sms);
          setContentView(view);
      }
    }
</code></pre>

<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:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;
&lt;TextView  
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

    android:text="@string/hello"
    android:id="@+id/row_entry"/&gt;

/&gt;


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

<p>Manifest:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="New.test"
      android:versionCode="1"
      android:versionName="1.0"&gt;
    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
        &lt;activity android:name=".Mynew"
                  android:label="@string/app_name"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;

    &lt;/application&gt;



&lt;uses-permission android:name="android.permission.READ_SMS"&gt;&lt;/uses-permission&gt;
&lt;/manifest&gt; 
</code></pre>
