not execute method of the activity child already has a parent. call close()

IllegalStateException: Could not execute method of the activity

Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

    parent.removeView(child);

WARN/SQLiteCompiledSql(23963): Releasing statement in a finalizer. Please ensure that you explicitly call close() on your cursor: select distinct path from info

ERROR/Database(23963): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here

    finally{cursor.close();}

REFERENCES:http://stackoverflow.com/questions/9203685/android-illegalstateexception-could-not-execute-method-of-the-activity

http://blog.csdn.net/competerh_programing/article/details/7698566

原文地址:https://www.cnblogs.com/anee/p/2683796.html