inner class

Broadcast receiver Activity

SDK Version: 
M3

If you want to catch a broadcasted intent on an Activity, you may get the following error:

  1. 02-22 08:18:46.874: E/AndroidRuntime(276): java.lang.RuntimeException: Unable to instantiate receiver com.helloandroid.broadcasttest.BroadcastTestActivity$MyBroadcastReceiver:
  2. ...
  3. java.lang.InstantiationException: com.helloandroid.broadcasttest.BroadcastTestActivity$MyBroadcastReceiver
  4.  
  5.  
  6. ...
  7.  
  8. 02-22 08:18:46.874: E/AndroidRuntime(276): Caused by: java.lang.InstantiationException: com.helloandroid.broadcasttest.BroadcastTestActivity$MyBroadcastReceiver

Syndicate content