Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you search Google Play using Intent?

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"?

like image 801
hks Avatar asked Nov 13 '12 13:11

hks


People also ask

What can intent be used for in Android?

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.

How do I open an app with intent?

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.

What is not specified by implicit 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.


1 Answers

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);
like image 100
Kerim Oguzcan Yenidunya Avatar answered Sep 29 '22 08:09

Kerim Oguzcan Yenidunya