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
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
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
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,
+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,
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,
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.
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[]{
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 =
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
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
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
12 matches
Mail list logo