ANDROID:LABEL给以个标题名 <action android:name="android.intent.action.MAIN"/>确定ACTIVITY是以个MAIN的活动 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.zhouhuasheng.activitytest"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".FirstActivity" android:label="This is FirstActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest>
AndroidManifest.xml文件注册ACTIVITY,确定以个MAINACTIVITY
最新推荐文章于 2021-07-15 10:32:30 发布