【发布时间】:2021-12-13 12:46:17
【问题描述】:
如何解决这个问题?
请考虑到我不太懂编程
AndroidMainfest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ment4">
<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/Theme.Assignment4">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<receiver android:name="MyReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED">
</action>
</intent-filter>
</receiver>
</activity>
</application>
</manifest>
【问题讨论】:
-
</receiver> </activity>您将接收者标签放在活动标签中。所以现在是活动的孩子。将其放在活动上方或下方。 -
除了它我应该去哪里?