简体   繁体   English

在Android中安装了多个应用

[英]multiple apps getting installed in android

I created an app that includes more than one layout. 我创建了一个包含多个布局的应用程序。 And I made a java file for each of those layout. 我为每个布局创建了一个Java文件。 When I run the application in emulator an app for each layout are individually being created. 当我在模拟器中运行应用程序时,将分别创建每个布局的应用程序。 But I could navigate well as I have instructed in the code. 但是我可以按照代码中的指示进行导航。

What could be the reason for this? 这可能是什么原因? How to let them come under one single application? 如何让它们属于一个应用程序?

You probably have <category android:name="android.intent.category.LAUNCHER" /> set for all your activities in AndroidManifest.xml . 您可能在AndroidManifest.xml为所有活动设置了<category android:name="android.intent.category.LAUNCHER" /> Remove this line for every activity you do not want to show up in the launcher. 删除这条线,你不想在启动器显示每一个活动。

change to 改成

if that does not work we'll need to see the manifest... it could also be that you have created these activities in different packages. 如果不起作用,我们将需要查看清单...也可能是您在不同的程序包中创建了这些活动。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM