Android 应用程序不会在启动时启动

标签 android android-manifest boot receiver

我阅读了大量关于如何让应用程序在系统启动时启动的教程(LinkLink ...)。

我的接收器看起来像这样,其余的就像教程中描述的那样:

        <receiver android:enabled="true" android:name=".BootUpReceiver"
            android:permission="android.permission.RECEIVE_BOOT_COMPLETED">

            <intent-filter>
                    <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
    </receiver>

但我的应用程序无法启动...有什么想法吗?

最佳答案

太笨了!

您需要添加接收者类的完整路径:

<receiver android:enabled="true" android:name="com.mypackage.whatever.BootUpReceiver"

关于Android 应用程序不会在启动时启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14776651/

相关文章:

android - 自动启动应用程序无法解释的崩溃

android - 从 Android 中的 onActivityResult 中提示语音识别

android - 支持 Android AIR AS3 的多种屏幕尺寸

android - iOS或android开发,如何在一定时间后使应用程序过期

android - 如何将抽屉导航设置为从下到上

ssh - 我可以在计算机启动期间让SSH客户端运行吗?

android-manifest - 安卓错误 :Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one

android - Drawable资源 : Failed to re-package resources, 详见控制台

Android 应用再次调用 MAIN/LAUNCHER,而不是 onResume()

android - Xamarin 项目中具有 BOOT_COMPLETED 操作的 BroadcastReceiver 的正确设置是什么?