[android-developers] Re: simplecursoradapter

2010-07-19 Thread brucko
to make things easier, you could use Activity.startManagingCursor() and the Activity will take care of it for you On Jul 20, 1:33 am, ecforu ecforus...@gmail.com wrote: If I pass a cursor to a simplecursoradapter, do I still need to close the cursor?  if so when: after I pass it to the

[android-developers] Re: 'SimpleCursorAdapter' symbol not found and related errors in notepad sample application.

2010-02-05 Thread NoraBora
Remove the first line. import com.tutorials.R; or in Eclipse Ctrl+Shift+o, which is a short-cut for auto-import. On Feb 4, 10:23 am, Swiftguy vikram@gmail.com wrote: Hello All, Im new to Android. Trying to run the 'notepad' application on my local system (building using ANT) Getting

[android-developers] Re: SimpleCursorAdapter SQLite field not found in ListActivity

2009-12-24 Thread Nmix
On Dec 22, 12:38 pm, jcknight jckni...@gmail.com wrote: I have a SimpleCursorAdapter that I’m using to pull the contents of aSQLitetable and populate a ListView.  Here is some code: http://pastie.org/private/ibrwbcv1xu1dpv2l7ys5g When it tries to populate the ListView I get an

[android-developers] Re: SimpleCursorAdapter()

2009-06-26 Thread Mark Murphy
elzee wrote: How can I format these fields before placing them into my listview? private static int[] TO = { R.id.from, R.id.body, R.id.date, }; private static String[] FROMTWO = { FROM, BODY, DATE, }; SimpleCursorAdapter adapter; adapter = new SimpleCursorAdapter(this,R.layout.item, c,

[android-developers] Re: SimpleCursorAdapter and blobs

2009-05-16 Thread zlu
+1 On Mar 30, 10:19 am, cannehal tomasz.l...@gmail.com wrote: I have similar issue. Cannot retrieve image from database (BLOB). As far as I know it should work without writing your own ViewBinder, because setImageView is doing all the work. Can someone help us with this issue? On 25 Mar,

[android-developers] Re: SimpleCursorAdapter and blobs

2009-03-30 Thread cannehal
I have similar issue. Cannot retrieve image from database (BLOB). As far as I know it should work without writing your own ViewBinder, because setImageView is doing all the work. Can someone help us with this issue? On 25 Mar, 20:09, prout thesuperbi...@gmail.com wrote: hi, On 24 mar, 17:40,

[android-developers] Re: SimpleCursorAdapter and blobs

2009-03-25 Thread prout
hi, On 24 mar, 17:40, prout thesuperbi...@gmail.com wrote: the favicon field returned by the browser bookmark provider is a sqlite blob. ... I tried using a SimpleCursorAdapter.ViewBinder but I get an exception. ... according to my logs, the exception occurs before my viewbinder is called.

[android-developers] Re: SimpleCursorAdapter and setListAdapter problems

2009-03-19 Thread Mike Garcia
Nevermind, I found the solution... The final fillData function does exactly what I need. Hope this helps someone... private void fillData(){ Cursor c = mDbHelper.fetchAllClients(); startManagingCursor(c); // Set Client Row Title String[] from = new String[]{

[android-developers] Re: SimpleCursorAdapter and OnListItemClick - Simple question

2009-03-08 Thread Gavin Aiken
This works for me; private Cursor c; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); Integer category = this.getIntent().getIntExtra(category, -1); mediator = new SqliteMediator(this); c =

[android-developers] Re: SimpleCursorAdapter and ListView.setTextFilterEnabled()

2009-03-02 Thread toihart
I have the same problem. Anybody can help? On 14 feb, 11:01, Parakoos parak...@gmail.com wrote: I want to display all contacts with a phone number in a list. I got the data, it is displayed in the list but my problem is that I can't get the text filter functionality to work. E.g. when the

[android-developers] Re: SimpleCursorAdapter and ListView.setTextFilterEnabled()

2009-03-02 Thread Marco Nelissen
The system doesn't do the filtering automatically, because it wouldn't know how to filter your Cursor based on the string. You basically need to rerun the query with a new where-clause every time the user types something. If you have your own Adapter, you can easily do this by implementing

[android-developers] Re: SimpleCursorAdapter to Spinner getting CursorIndexOutOfBoundsException

2008-11-26 Thread wescorp
Thanks for the tip and your help Mark. btw, Your book is great. Cheers, Wes On Nov 16, 12:41 pm, Mark Murphy [EMAIL PROTECTED] wrote: After this I decided to implement a for loop just to see if I could display all the cursor information before I actually try to use it somewhere. Here's