[android-developers] Re: do i need to close cursor?

2009-09-10 Thread 楊健
You will see some warning info in logcat if you do not close it . -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of jerryfan2000 Sent: Thursday, September 10, 2009 4:14 PM To: Android Developers Subject:

[android-developers] Re: do i need to close cursor?

2009-09-10 Thread Sasi Kumar
close the sursor each time. b'coz when u try to open another time the cursor. it will show exception as already cursor as opened. so close the cursor On Sep 10, 12:13 pm, jerryfan2000 jerryfan1...@gmail.com wrote: Hi, Just wondering is it necessary to close cursor when an activity is

[android-developers] Re: do i need to close cursor?

2009-09-10 Thread Felipe Silveira
It is recommended to close all cursors when you are not using they anymore. If you keep it opened, you will cause a memory leak on your application. Felipe Silveira On Thu, Sep 10, 2009 at 7:06 AM, Sasi Kumar sasikumar.it1...@gmail.comwrote: close the sursor each time. b'coz when u try

[android-developers] Re: do i need to close cursor?

2009-09-10 Thread iPaul Pro
managedQuery() does not need to be closed. http://groups.google.com/group/android-developers/browse_thread/thread/9c887ac024b36798 Paul On Sep 10, 3:13 am, jerryfan2000 jerryfan1...@gmail.com wrote: Hi, Just wondering is it necessary to close cursor when an activity is stopped or pause?