我从 Codecanyon 购买了这个应用程序,但文档不是很清楚。我的问题是如何找到默认活动类名称? 这是我的 androidmanifest.xml 文件。我无法弄清楚 Launcher 活动。我需要这个用于 FB 登录 API 集成。
.
请告诉我默认活动类名称?
答案 0 :(得分:1)
<activity android:name=".Presentation.ui.activities.impl.SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
具有此行的 <activity></activity>
标记:
<category android:name="android.intent.category.LAUNCHER" />
是您的启动器活动,因此它是 SplashActivity。如果要查找从此活动打开的活动,则需要检查代码。搜索类似这样的内容:
Intent intent = new Intent(SplashActivity.this, OtherActivity.class;
startActivity(intent);
或
startActivity(new Intent(SplashActivity.this, OtherActivity.class));
开始一项新活动有很多选项,但它应该如下所示。如果您有任何其他问题,请在下面的评论中提问。