hi, my replay below

> > I am writing simple app that will read callLog content provider
> > transform data and write it to my own table. my app will not show data
> > directly from calllog content provider.
>
> Why?
I want to aggregate data from calllog, add something from me and
practice.
so I want to access calllog and get only few last events from it.

>
> > 1. now one problem that I have is I cannot limit how much rows query
> > will return (by calling activity.managedQuery) but I assume that
> > Cursor delays access to the db and I can use moveToNext as many times
> > as desired to get few rows from table and the call will be efficient.
> > is that good thinking?? OR am I wrong here?
>
> You are wrong here. If your query is for all rows, it will do the work
> to load all rows out of the database and into memory when you access the
> first one.

OK i just found some replay that said something like that so I wanted
to clarify that. then how to query callLog and limit rows being read

>
> > 2. I dont want to implement my own content provider for my app. I will
> > use rawQuery many times and group data so contentprovider's callbacks
> > are not enough for me.
> > more I want my dao to be private to my application so I think there is
> > no need to bother with conentprovider.
>
> Then don't implement a content provider.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to