0

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?

Sid
  • 1,270
  • 2
  • 15
  • 30

1 Answers1

1

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"));
GoRoS
  • 5,183
  • 2
  • 43
  • 66
Sid
  • 1,270
  • 2
  • 15
  • 30