Problem with Quick Search Box: ContentProvider with a custom non-sqlite datasource

by Mark Murphy » Sat, 03 Jul 2010 15:44:42 GMT


Sponsored Links
 


Why are you returning null? Why not return a Cursor (e.g.,
MatrixCursor) with the results of the query?

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android Training...At Your Office:  http://commonsware.com/training 

--



Problem with Quick Search Box: ContentProvider with a custom non-sqlite datasource

by Charlie Chilton » Sat, 03 Jul 2010 16:06:08 GMT


 Mark (you legend!), thanks for heads up!

MatrixCursor looks like just the kind of thing I need :D

Cheers

Charlie






--


Sponsored Links


Other Threads

1. Maximum display resolution possible

Hi friends,
    I am new to android and I want to display some high resolution
images(1280x720) on android emulator .So please tell me which things I need
to change.

Regards,
Sagar

-- 

2. SimpleCursorAdapter and Spinner control

Hello,

I'm trying to create a very simple application that extract data from
SQL database and populate a spinner control with (for example) product
names.
I found the following example of the code:

String[] from = new String[] { "Product_Name" };

int[] to = new int[] { android.R.id.text1 };

SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
android.R.layout.simple_spinner_item, product_cursor, from, to  );

adapter.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);

spinner.setAdapter(adapter);

The only thing I couldn't understand what should I put into "to"
array? The spinner is the only control on the form. I tried to find
the answer, but most of the samples use ListView control and put
"android.R.id.text1" into "to" array

Thanks,
gin_tonic

--~--~---------~--~----~------------~-------~--~----~

3. Cannot see map in my mobile device

4. Multiple Layouts in a ListView

5. App upgrade (with zipalign) causes force closes/disappearing of app icon

6. Mounting an extra partition in Android

7. Trying to add an additional partition - must be missing something...