Receiver as inner class in Android

前端 未结 6 1712
广开言路
广开言路 2020-11-27 06:14

In my code there is an inner class that extends BroadcastReceiver.

And I have added the following line to the AndroidManifest.xml:

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 06:28

    you dont need to use $... If you get warning for a class which is not actually an inner class, it's because you are using uppercase characters in your package name, which is not conventional.

    I tried also to change only the first letter of the package name to be lower case, the warning and error disappeared.

提交回复
热议问题