开发者

How to open an application from another application in android?

开发者 https://www.devze.com 2023-02-22 07:32 出处:网络
How can I launch an application from my app. For eg:if there is link in my app and when I click on that link it should open anothe开发者_运维技巧r app.Use this.

How can I launch an application from my app. For eg:if there is link in my app and when I click on that link it should open anothe开发者_运维技巧r app.


Use this.

private void playVideo(){
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + videoId)));
    lastMonoSrc=5;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消