Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Another App with android.intent.action.VIEW

I want to open another app and open a specific page in it! in their guide they said to use the bellow for default action

android.intent.action.VIEW

and use a kind of intent, which didn't get which, like bellow to go to that specific page:

somecompany://details?id=com.example.calendar

but i don't know how! And i tryed a ton of solutions but coudn't do it !

Thanks for your help.

like image 916
Amin Keshavarzian Avatar asked Feb 27 '26 17:02

Amin Keshavarzian


1 Answers

I think this is what you're asking for. This will open a specific app's page in the Google Play store.

startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(
    "market://details?id=com.mycompany.mypackage")));

Don't replace the word market. That is specifically reserved by Android to open the Google Play store.

like image 190
Tenfour04 Avatar answered Mar 01 '26 07:03

Tenfour04



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!