question

squirrelsRduck avatar image
squirrelsRduck asked

Leaked IntentReceiver when exiting app

anybody else have this problem? know how to solve? occurs when using the back button to exit app 12-18 11:12:20.088: E/ActivityThread(5009): android.app.IntentReceiverLeaked: Activity com.squirrelsareduck.chess.ChessActivity has leaked IntentReceiver com.amazon.device.gamecontroller.GameController$1@421ae908 that was originally registered here. Are you missing a call to unregisterReceiver()? 12-18 11:12:20.088: E/ActivityThread(5009): at android.app.LoadedApk$ReceiverDispatcher. (LoadedApk.java:805) 12-18 11:12:20.088: E/ActivityThread(5009): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:606) 12-18 11:12:20.088: E/ActivityThread(5009): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1623) 12-18 11:12:20.088: E/ActivityThread(5009): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1603) 12-18 11:12:20.088: E/ActivityThread(5009): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1597) 12-18 11:12:20.088: E/ActivityThread(5009): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:450) 12-18 11:12:20.088: E/ActivityThread(5009): at com.amazon.device.gamecontroller.GameController.init(GameController.java:211) 12-18 11:12:20.088: E/ActivityThread(5009): at com.squirrelsareduck.chess.ChessActivity.onCreate(ChessActivity.java:116)
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

squirrelsRduck avatar image
squirrelsRduck answered
im pretty sure the sample game of the sdk has the same issue. used to cause the fire tv stick to need a hard reset. not anymore, they must have improved the stick's firmware. but still gives the leaked intentreceiver message upon exit
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

squirrelsRduck avatar image
squirrelsRduck answered
ok solved the issue. delete GameController.init and then the app works normally
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.