Search to show a new intent?
<p>maybe some one can help me with this...
I have a custom search button (i do have the google search as well but I need this)..</p>

<p>here is the scenario:</p>

<ul>
<li><p>on main page I have list of records</p></li>
<li><p>I click on the search button which shows list of tags that I can click on for the system to search</p></li>
</ul>

<p>-I return to the main page with a string telling me which records to view</p>

<p>-the main page shows those records</p>

<p>this is all fine, but the problem is if I click back the app quits, which is understandable and what is suppose to happen.
what I want is the same as the android search function where it opens the result in a new page and when I click back it takes me to my full list</p>

<pre><code>Cursor notesCursor3 = mDbHelper.fetchSearchTagNotes(matchNotes);
startManagingCursor(notesCursor3);

String[] from = new String[]{NotesDbAdapter.KEY_TITLE,NotesDbAdapter.KEY_CREATEDON};

int[] to = new int[]{R.id.text1,R.id.date};

SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.notes_row, notesCursor3, from, to);
setListAdapter(notes);
</code></pre>

<p>this is my simple code after getting the search result, which is simply changing the adapter to the list (I do the same for the default android search which works like I said).</p>
