Intent_filter 启动屏幕清单 Android
我有一个主类和一个启动屏幕。飞溅不想显示,我相当确定它是清单。
有什么想法吗?
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:debuggable="true">
<uses-library android:name="com.google.android.maps"></uses-library>
<activity android:name="splash"></activity><activity
android:label="@string/app_name"
android:name=".Main"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
I have a main class and a splash screen. the splash doesn't want to show and I'm fairly certain its the manifest.
Any thoughts?
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:debuggable="true">
<uses-library android:name="com.google.android.maps"></uses-library>
<activity android:name="splash"></activity><activity
android:label="@string/app_name"
android:name=".Main"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应用于名为
.Main
的活动的 Intent 过滤器使得启动器将其作为应用程序中的 Main 活动启动。要切换焦点,您将拥有如下所示的清单:仔细查看现在设置意图过滤器的方式。启动活动设置为
MAIN
并将被分类为LAUNCHER
The intent filter applied to the activity called
.Main
makes it so the launcher will launch that as the Main activity in your application. To switch the focus you would have a manifest like the following:Take a close look at the way the intent filters are set up now. the splash activity is set as
MAIN
and will be categorized asLAUNCHER