Reputation: 1270
How do I trigger an event that would have been triggered if I would have clicked on one of the suggestions of my SearchView on Android? I need the system to call the very exact intent along with the passed parameters. Is it possible?
Upvotes: 0
Views: 474
Reputation: 1270
Got it! I use the explicit intent to call the SearchingActivity
with the required intent filters like:
intentSelected.setAction(Intent.ACTION_SEARCH);
intentSelected.setData(Uri.parse("item_to_search"));
Upvotes: 1