java – 无法找到默认活动类名称
发布时间:2020-05-25 13:09:09 所属栏目:Java 来源:互联网
导读:我正在处理将facebook登录链接到我的 Android应用程序的过程.在一些教程中,我被要求在Facebook开发者网站上注册我的应用程序,我在那里做了所有事情,但我在Android Studio中找不到“默认活动类名称”我在下面提供了清单文件 ?xml version=1.0 encoding=utf-8?
|
我正在处理将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 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
