android - Start default search activity without the SearchView -


i implementing search widget http://developer.android.com/guide/topics/search/search-dialog.html#usingsearchwidget search widget provides same functionality search dialog. starts appropriate activity when user executes search, , can provide search suggestions , perform voice search.

everything works fine, want start searchactivity without using search widget , same result when clicking on 1 of items bellow, how can achieve that?

http://screencloud.net//img/screenshots/9b2638fbf1dd928abed678f9d3081479.png

so when click lounge / nightclub same when use searchwidget(restaurant)

you can start search activity this:

intent intent = new intent(getactivity(), searchactivity.class); intent.putextra(searchmanager.query, "some text"); startactivityforresult(intent, 0); 

where searchactivity activity implementing


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -