How to make a click on an item in the global search provider (Quick Search Box) go to the correct Activity
<p>I have an application that has the structure: </p>

<ul>
<li><p>Activity A</p>

<ul>
<li><p>Activity B</p>

<ul>
<li>Activity C</li>
</ul></li>
</ul></li>
</ul>

<p>In activity B I call startActivityForResult on Activity C. </p>

<p>In Activity C I have a search provider where the user can search addresses and then return them to activity B. </p>

<p>This works great, but when I introduce the search results in the Quick Search Box (<a href="http://developer.android.com/guide/topics/search/adding-custom-suggestions.html" rel="nofollow">Reference Link</a>) then a click on the suggestion will go straight to Activity C. Calling finish on that activity will then not do what I want (returning to B with the result).</p>

<p>So any suggestions on how to rewrite this to work in both scenarios? </p>
