If you cross yourself with the following warning:
WARN/ActivityManager(78): Duplicate finish request for HistoryRecord
There is a chance that your application finish braking down.
This may occur when you write twice the method finish().
It seems that ActivityManager even do provide a warning, its die of a heart-attack when see the twins brothers of the method finish().
@Override public void onItemClick(AdapterView<?> parent, View v, int position, long id) { Log.d(TAG, 'onItemClick()'); ... finish(); ... finish(); }
So make sure you are not calling finish() once and later calling finish() again. Plus one finish() is more than enough.
© 2011, Alejandro G. Carlstein Ramos Mejia. All rights reserved.