[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread Marco Nelissen
You can have your own CursorAdapter, and in its bindView do whatever calculations and data mapping you need. On Tue, Jun 23, 2009 at 7:19 PM, nbadal ladabk...@gmail.com wrote: Hello, I'm looking for a way to insert data into a cursor that is separate from the SQL database it retrieves the

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread nbadal
So if I wanted to intercept the date data from the database, then do my calculations, then send that number back out to a textview in the list item, what would I need to do? On Jun 24, 10:07 am, Marco Nelissen marc...@android.com wrote: You can have your own CursorAdapter, and in its bindView

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread Mark Murphy
nbadal wrote: Hello, I'm looking for a way to insert data into a cursor that is separate from the SQL database it retrieves the rest of the information from. You do not insert into Cursors. You insert into the SQLiteDatabase or ContentProvider or other source of the Cursor. Is there any way

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread nbadal
Would something like this work? @Override public void bindView(View view, Context context, Cursor cursor) { TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil); String days = /* Calculations Here */ daysUntil.setText(days); super.bindView(view, context, cursor);

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread Mark Murphy
nbadal wrote: Would something like this work? @Override public void bindView(View view, Context context, Cursor cursor) { TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil); String days = /* Calculations Here */ daysUntil.setText(days);

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread nbadal
Alright, Thanks for the help! On Jun 24, 10:24 am, Mark Murphy mmur...@commonsware.com wrote: nbadal wrote: Would something like this work? @Override public void bindView(View view, Context context, Cursor cursor) {     TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil);