Boot/ScreenOn Broadcast Receiver not working

后端 未结 2 813
我在风中等你
我在风中等你 2021-01-06 00:14

I have a blank HelloWorld Application:

package tutorials.TestReceivers;

import android.app.Activity;
import android.os.Bundle;

public class TestReceiversAc         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-06 00:27

    Delete android-permission="android.permission.RECEIVE_BOOT_COMPLETED". Add a element for this permission as a child of the element.

    If the problems continue, use adb logcat, DDMS, or the DDMS perspective in Eclipse to look at LogCat and examine the stack trace associated with your crash.

    Here is a sample project showing how to get control at boot time.

    SCREEN_ON will not work from the manifest.

提交回复
热议问题