Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
can anyone help me please to get rid of this problem...

this is my code :

C#
cl = new CursorLoader(activity,MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj, null, null, null);
        videocursor = cl.loadInBackground();

SQL
if (videocursor.moveToFirst())
        {

SQL
                do
			{
				
			}
			while (videocursor.moveToNext());
		  }
//videocursor.close();


here you can see that I commented a line where cursor is closed. But when I close this, I can't resume the activity cause cursor is alredy closed. And when I didn't close it I get an error called 'memoryleak' hence I didn't close it :'(

Actually I want to resume the activity without any error. :)

I am begging a fruitful help. thanks :)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900