加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

java – 无法找到默认活动类名称

发布时间:2020-12-15 00:52:11 所属栏目:Java 来源:网络整理
导读:我正在处理将facebook登录链接到我的 Android应用程序的过程.在一些教程中,我被要求在Facebook开发者网站上注册我的应用程序,我在那里做了所有事情,但我在Android Studio中找不到“默认活动类名称”我在下面提供了清单文件 ?xml version="1.0" encoding="utf
我正在处理将facebook登录链接到我的 Android应用程序的过程.在一些教程中,我被要求在Facebook开发者网站上注册我的应用程序,我在那里做了所有事情,但我在Android Studio中找不到“默认活动类名称”我在下面提供了清单文件
<?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>

请帮我找到“默认活动类名”

解决方法

应该是包含以下内容的类:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

所以它的.Frontpage

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读