Android: adding an extra String to TextView which populates its content from Database
<p>I have a listview which populates its content from SQLite Database.
Here's my code:</p>

<pre><code>ListView listView = (ListView) findViewById(R.id.lstText);
        listView.setOnItemClickListener(this);
        listView.setAdapter(new MySimpleCursorAdapter(this, R.layout.listitems,
                managedQuery(Uri.withAppendedPath(Provider.CONTENT_URI,
                        Database.Project.NAME), new String[] { BaseColumns._ID,
                        Database.Project.C_PROJECTTITLE,
                        Database.Project.C_SMALLIMAGE, Database.Project.C_PROJECTDESCRIPTION, Database.Project.C_ORGANIZATIONTITLE}, null, null, null),
                new String[] { Database.Project.C_PROJECTTITLE,
                        Database.Project.C_SMALLIMAGE, Database.Project.C_PROJECTDESCRIPTION, Database.Project.C_ORGANIZATIONTITLE}, new int[] {
                        R.id.txt_title, R.id.image, R.id.txt_list_desc, R.id.txt_org}));
</code></pre>

<p>I want to put an extra String to some <code>TextViews</code> above when its displayed on the list. For example, I want to add a <code>String</code> with the word "from" on <code>R.id.txt_org</code>, before the populated String from the database which is <code>Database.Project.C_ORGANIZATIONTITLE</code></p>

<p>Let's say the populated <code>String</code> is: <strong>New Organisation</strong>,
with an extra <code>String</code> "from" what will be displayed is: <strong>from New Organisation</strong></p>

<p>Can anybody help me with that? Thank you very much.</p>

<p>EDITED:</p>

<p>FYI, this is my SimpleCursorAdapter method:</p>

<pre><code>class MySimpleCursorAdapter extends SimpleCursorAdapter {

        public MySimpleCursorAdapter(Context context, int layout, Cursor c,
                String[] from, int[] to) {
            super(context, layout, c, from, to);
            loader = new ImageLoader(context);
            this.context = context;
        }

        Context context=null;
        ImageLoader loader = null;

        public void setViewImage(ImageView v, String value) {
            v.setTag(value);
            loader.DisplayImage(value, context, v);
        }
    }
</code></pre>
