Text box + submit button how do i send the string to another class
<p>I am trying to create a class that allows search of a database to do this i am creating these classes.</p>

<ul>
<li>Search - search has a text box and a
submit button. on submit it should
send the text to DB.</li>
<li>DB - DB handles the database
connection and gets the result using
the string it receives.</li>
<li>Result - result will have a list
activity view that will display the
results revived from DB.</li>
</ul>

<p>Thats how i want it to work.</p>

<p>At the moment i have this code.... and not much of it is working so i was hoping someone can tell me if im doing it wrong.</p>

<pre><code> @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.search);

        confirm = (Button) findViewById(R.id.confirm);
        search = (EditText) findViewById(R.id.search);

        confirm.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {

                String   mSearch = search.getText().toString();

                trySearch(mSearch);
            }
        });
    }
</code></pre>

<p>how do i pass the mSearch string to my DB class, and run the method trySearch</p>
