Here's the situation:
I want to open another app via implicit intent, but the user doesn't have adequate app. Can I open for him "Google Play Search Activity" with results including apps that contain components able to serve such intent (have appropriate intent filter). In other words can you perform search using "Intent data"?
An intent is to perform an action on the screen. It is mostly used to start activity, send broadcast receiver,start services and send message between two activities.
It is possible to start an app's activity by using Intent. setClassName according to the docs. To open it outside the current app, add this flag before starting the intent.
Implicit Intent doesn't specifiy the component. In such case, intent provides information of available components provided by the system that is to be invoked.
To perform search use search keyword in URI:
Intent goToMarket = new Intent(Intent.ACTION_VIEW).setData(Uri.parse("market://search?q=<Your Search Word>"));
startActivity(goToMarket);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With