gpt4 book ai didi

java - 无法找到默认 Activity 类名称

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:13:20 24 4
gpt4 key购买 nike

我正在处理将 facebook 登录链接到我的 android 应用程序的过程。在一些教程中,我被要求在 Facebook Developers 网站上注册我的应用程序,我在那里做了所有的事情,但我在我的 Android Studio 中找不到“默认 Activity 类名称”,我在下面提供了 list 文件

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="in.evago.evago">

<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />

<!-- Front Page -->
<activity
android:name=".Frontpage"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

<meta-data
android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<!-- Search results activity -->


<activity
android:name=".SearchResultsActivity"
android:label="@string/title_activity_searchable"
android:launchMode="singleTop"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
</activity>
<!-- Search results activity Ends -->

</application>

请帮我找到“默认 Activity 类名称”

最佳答案

应该是包含的类:

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

所以它的.Frontpage

关于java - 无法找到默认 Activity 类名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35509597/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com