My Robotium-based tests run into OutOfMemory
problems on API 10 emulators because my activity is not properly released. If I look into MAT (the Memory Analyzer) I see that three instances of my activity are still kept as reference in internal CommitSelectionReceiver
's of Android's android.widget.EditText
:
Now the problem does not seem to persist in 4.x because - according to grepcode at least - such a ResultReceiver is no longer used in the newer platform's code. Still, I want my Robotium tests to be executed on this legacy platform as well.
Has anybody stumbled upon this problem before and knows a temporary fix / workaround to fix this?