Search code examples
javaandroidandroid-intent

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.


Solution

  • 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.