1
vote
1answer
22 views

Keeping database queries from ContentResolver and SQLiteDatabase from blocking each other

My app runs some very complicated queries using joins and other things which the Android ContentResolver is not equipped to handle. Some of these queries, inserts, etc can block the UI thread, so I ...
0
votes
0answers
58 views

Replicating the stock messaging app: getting the inbox to display the last message per conversation correctly

I want to create a messaging app, so I start with the first step: Getting the inbox view to display the first line of the last message of a contact, like below, [contact] [time] [last_message] Note ...
0
votes
1answer
145 views

Inserting data to sqlite database using ContentResolver

I'd like to use ContentResolver.bulk(uri, ContentValues[]) method. I have sqlite database stored under the database folder inside the app private storage. Database is named mydb.db What would be ...
0
votes
1answer
208 views

Complex sqlite queries gives

I am trying to execute a query which has a variety of conditions and I'm getting an Exception. bind or column index out of range Here is the query from the ContentProvider. @Override public Cursor ...
0
votes
0answers
116 views

Combining search criteria in ContentResolver

I am trying to implement multiple selection criteria in a ListFragment. I am using a ContentProvider. Compatibility-mode throughout if that matters. When the user enters a search, I want to find all ...
1
vote
0answers
96 views

ContentResolver differences between GB and ICS?

My app implements a custom content provider, I have Android JUnit tests for it both for basic operations and more complex ones (using ContentProviderOperations). my tests pass on a GB emulator, but ...
0
votes
1answer
224 views

ContentProvider with mulpitle tables, all kind of errors

I've built a single ContentProvider as a frontend for my 3 table sqlitedb. It's my first ContentProvider and i can't find a good tutorial on how to built it. The schema is actually very simple. ...
0
votes
3answers
1k views

inserting to multiple tables with ContentProvider

I'm implementing a PRIVATE ContentProvider which has few tables with relationships (one to many, many to many). In my current implementation all of the tables are accessible by URIs. how can I ...