Source: StackOverflow
This answer is a little late but I feel it'll be useful for future viewers. The dilemma seems to come from the ambiguity of the Android SearchView tutorial. The scenario they cover assumes you will be displaying the results in the same Activity the SearchView resides. In such a scenario, the Activity tag in the AndroidManifest.xml
file would look something like this:
<activity
android:name=".MainActivity"
android:label="@string/main_activity_label"
android:launchMode="singleTop">
<intent-filter>