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. dhcpcd refuses to die after turning wifi off.

init.svc.dhcpcd is showing STOPPED, even though the dhcpcd process is
still running.

setprop ctl.stop dhcpcd does not stop it.

This is a problem because when I turn wifi off, it is still running in
the background. Then when I turn wifi back on, dhcpcd tries to run
again but terminates early. I get this error:

wlan0: flock '/data/misc/dhcp/dhcpcd-wlan0.pid': Try again

Why isn't dhcpcd dying like it should? Is it because of the fork?



Here are logs for dhcpcd when it starts normally:

01-28 16:47:04.992: INFO//system/bin/dhcpcd(3476): wlan0: dhcpcd 4.0.1
starting
01-28 16:47:04.992: INFO//system/bin/dhcpcd(3476): wlan0: hardware
address = 00:1f:e1:00:00:81
01-28 16:47:04.992: INFO//system/bin/dhcpcd(3476): wlan0: executing `/
system/etc/dhcpcd/dhcpcd-run-hooks', reason PREINIT
01-28 16:47:05.014: INFO//system/bin/dhcpcd(3476): wlan0: host does
not support a monotonic clock - timing can skew
01-28 16:47:05.014: INFO//system/bin/dhcpcd(3476): wlan0: broadcasting
for a lease
01-28 16:47:05.014: INFO//system/bin/dhcpcd(3476): wlan0: sending
DHCP_DISCOVER with xid 0xae6fe22a, next in 3.72 seconds
01-28 16:47:05.024: INFO//system/bin/dhcpcd(3476): wlan0: offered
10.20.17.45 from 10.20.16.22
01-28 16:47:05.024: INFO//system/bin/dhcpcd(3476): wlan0: checking
10.20.17.45 is available on attached networks
01-28 16:47:05.024: INFO//system/bin/dhcpcd(3476): wlan0: sending ARP
probe (1 of 3), next in 1.03 seconds
01-28 16:47:05.024: INFO//system/bin/dhcpcd(3476): wlan0: ignoring
offer of 10.20.17.45 from 10.20.16.22
01-28 16:47:06.072: INFO//system/bin/dhcpcd(3476): wlan0: sending ARP
probe (2 of 3), next in 1.34 seconds
01-28 16:47:07.422: INFO//system/bin/dhcpcd(3476): wlan0: sending ARP
probe (3 of 3), next in 2.00 seconds
01-28 16:47:07.994: ERROR/WifiHW(2141): Sending cmd: DRIVER RSSI -
01-28 16:47:07.994: ERROR/WifiHW(2141): Sending cmd: DRIVER LINKSPEED
-
01-28 16:47:09.432: INFO//system/bin/dhcpcd(3476): wlan0: sending
DHCP_REQUEST with xid 0xae6fe22a, next in 3.10 seconds
01-28 16:47:09.442: INFO//system/bin/dhcpcd(3476): wlan0: acknowledged
10.20.17.45 from 10.20.16.22
01-28 16:47:09.442: INFO//system/bin/dhcpcd(3476): wlan0: leased
10.20.17.45 for 691200 seconds
01-28 16:47:09.442: INFO//system/bin/dhcpcd(3476): wlan0: adding IP
address 10.20.17.45/24
01-28 16:47:09.442: INFO//system/bin/dhcpcd(3476): wlan0: adding route
to 0.0.0.0/0 via 10.20.17.1
01-28 16:47:09.442: INFO//system/bin/dhcpcd(3476): wlan0: executing `/
system/etc/dhcpcd/dhcpcd-run-hooks', reason BOUND
01-28 16:47:09.454: INFO//system/bin/dhcpcd(3476): wlan0: forking to
background
01-28 16:47:09.454: INFO/logwrapper(3476): /system/bin/dhcpcd
terminated by exit(0)
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to coding for app send files.

Hi

How to coding for app send files by Bluetooth ?

Thank you

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

3. How to detect Fling action in my widget

4. adb and ddms can't connect to emulator after installing Windows XP driver for G1

5. Putting Android on Par with the iPhone Software ( cont'ed)

6. When the system launches a ResolverActivity or ChooserActivity it doesn't present...

7. How to config G1 to make both browser and MMS work?