简体   繁体   English

通过单击按钮在移动设备中加载现有的Android App

[英]Loading Existing Android App in mobile by clicking button

I have developed a small Android app by using jquery mobile. 我通过使用jquery mobile开发了一个小型Android应用程序。 In that jquery mobile app i am using a button to open my another native android app. 在那个jQuery移动应用程序中,我使用一个按钮来打开另一个本机Android应用程序。 Is it possible if i click on jquery mobile app button to load/open native android app which is already install in mobile and working fine ? 如果我单击jquery移动应用程序按钮加载/打开已经安装在移动设备中并且可以正常工作的本机android应用程序,是否可以?

Please help me to provide any script for this. 请帮助我为此提供任何脚本。 Thanks. 谢谢。

    Intent i;
PackageManager manager = getPackageManager();
try {
    i = manager.getLaunchIntentForPackage("app package name");
    if (i == null)
        throw new PackageManager.NameNotFoundException();
    i.addCategory(Intent.CATEGORY_LAUNCHER);
    startActivity(i);
} catch (PackageManager.NameNotFoundException e) {

}

Link : Open another application from your own (intent) 链接: 从您自己的意图打开另一个应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 单击一个按钮,将您带到android现有应用程序的主菜单 - Clicking on a button which take you to the main menu of android existing applications 单击移动浏览器中的按钮后如何打开移动应用程序(使用javascript / react)[深度链接] - How to open mobile app after clicking a button in mobile browser (using javascript / react) [Deep Linking] 在android phonegap应用中单击“后退”按钮时强制关闭 - force close when clicking the back button in android phonegap app "如何通过单击 webapp 上的按钮(如 opensea)来检测、启动和连接到 metamask 移动应用程序?" - How to detect,launch and connect to metamask mobile app by clicking on a button on the webapp like on opensea? 通过使用phonegap / cordova单击android native菜单按钮来触发jquery移动面板菜单 - fire jquery mobile panel menu by clicking android native menu button using phonegap/cordova 单击按钮jquery mobile时蓝色突出显示 - blue highlight when clicking button jquery mobile Phonegap App:单击按钮时的阴影 - Phonegap App: Shadows on clicking a button 单击特定按钮开始加载div - Start loading div by clicking on a specific button 持续更新网页而无需加载或单击按钮 - continuously update the webpage without loading or clicking a button 单击按钮时未显示引导加载图标 - Bootstrap loading icon not shown when clicking on button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM