How do you start an Activity with AlarmManager in Android?

前端 未结 8 920
鱼传尺愫
鱼传尺愫 2020-12-01 17:01

I\'ve poured through a dozen tutorials and forum answers about this problem, but still haven\'t been able to get some working code together. I\'ll try to keep the question s

8条回答
  •  一向
    一向 (楼主)
    2020-12-01 17:27

    According to Java convention class name begin with Capital letter.So change your

    "myReceiver" to "MyReceiver" and  "myActivity" to "MyActivity".
    

    Then add your receiver in the manifest file like the below.

    
    ---------------------
    
    

提交回复
热议问题