[Error][Android] unable to instantiate receiver no empty constructor

摘要:[Error][Android] unable to instantiate receiver no empty constructor

使用內部類繼承BroadcastReceiver時,發生unable to instantiate receiver no empty constructor

解決:將內部類改為static

 

FYI:

http://stackoverflow.com/questions/10305261/broadcastreceiver-cant-instantiate-class-no-empty-constructor