简体   繁体   English

如何从我的Android应用程序中启动或调用Microsoft标记阅读应用程序?

[英]how to launch or invoke microsoft tag reading app from within my android application?

Hi I would like to know how to invoke Microsoft tag reader app from within my android application, like as soon as my application opens the tag reader should be invoked automatically. 嗨,我想知道如何从我的android应用程序中调用Microsoft标记读取器应用程序,就像我的应用程序打开后,应自动调用标记读取器一样。 Any code snippet regarding this query is viable, I would appreciate it. 关于此查询的任何代码段都是可行的,我将不胜感激。

In your Activity onCreate, add the following lines: 在您的Activity onCreate中,添加以下行:

Intent intent = new Intent("android.intent.action.MAIN");
PackageManager manager = getPackageManager(); 
intent = manager.getLaunchIntentForPackage("com.microsoft.tag.app.reader");
intent.addCategory("android.intent.category.LAUNCHER"); 
startActivity(intent); 

The easiest way to figure out the correct package name for any application is by looking at LogCat while launching the activity (filter on ActivityManager ). 找出任何应用程序正确的程序包名称的最简单方法是在启动活动( ActivityManager过滤器)时查看LogCat

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

相关问题 如何从Android手机中的应用程序调用Foursquare应用程序? - How to invoke Foursquare application from my app in Android phone? 如何从我自己的 android 应用程序启动 Telegram 应用程序? - How to launch Telegram app from my own android application? 如何从我的 Android 应用活动启动另一个应用 - How to Launch another application from My Android app Activity 如何在我自己的Android应用程序中启动另一个应用程序? - How to Launch another Application within my own application in Android? Android Auto-从我的应用程序中启动第三方应用程序? - Android Auto - launch third party app from within my app? 如何在我的Android应用程序中启动Android应用程序? - How to Launch android apps within my application in Android? 如何使用意图从我的Android应用程序中启动Amazon Prime视频应用程序 - how launch amazon prime video app from within my android app using intent 如何从我的应用程序启动picasa(android) - how to launch picasa from my app(android) 我可以从我的应用程序中启动android应用程序吗? - Can I launch android apps from within my app? 如何在Android上的注册应用程序中从我的WebView中启动Web链接? - How to launch a web link from within my WebView in a registered app on Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM