如何启动我的其他应用程序或默认应用程序?(How to launch my other application or default application? [closed])
如何在按钮点击事件中启动我的其他应用程序或默认应用程序(如键盘)? 我想在自定义应用程序中打开其他应用程序。
How to launch my other application or default application (like keyboard) in button click event? I want open other applications in my custom application.
最满意答案
只需在按钮操作时使用以下代码:
com.package.address ==其他应用程序或默认应用程序的包名称
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address"); startActivity(LaunchIntent);快乐的编码!
Just use below code in the event of your button action:
com.package.address == other application or default application's packages name
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address"); startActivity(LaunchIntent);Happy coding !!!
更多推荐
发布评论