Android startmanagingcursor from ArrayAdapter Class?

It seems SimpleCursorAdapter is more appropriate here.

The arrayadapter is populating a view used in a custom ListView. The data comes in from a webservice as JSON, I parse the data into an object. This arrayadapter class takes the object and populates the view.

The reason for the DB look up is to do a look up on value of one of the object properties. For example, the webservice returns a code value in the JSON of 'abc' this value ends up in the object class. When I populate the view, I need to use the DB to find a more user-friendly name for the code.

Does that make sense? – Bryan Kemp May 25 at 7:13.

I am not supporting 3.0 devices at this point. My minimum sdk is 1.6. Don't ask me, its what the customer wants. – Bryan Kemp May 25 at 7:16 Then, you shouldn't use the startManagingCursor-method and close it yourself (if you need to).

– Lukas Knuth May 25 at 7:25.

The startManagingCursor()-method is deprecated anyways. If you're targeting Devices with Android 3.0 you can use a CurserLoader. If not, you may want to create the cursor for a global object and close it in your onStop-method.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions