Accessing CallLog beyond Activity

by Manfred » Sun, 15 Mar 2009 02:46:32 GMT

Sponsored Links

I want to get informed in a service about outgoing calls! As far as i
have seen its only possible with the CallLog. I found an example like

          Cursor c = getContentResolver().query(
                    null, null, null,
                    android.provider.CallLog.Calls.DATE + " DESC");

The problem is, that i cannot invoke getContentResolver because the
class i want to use doesnt provide it. I found out that you need a
class that excents Activity to use this construct. Is it also possible
in another way?


Other Threads

1. ContextMenu onClickListener on a ListView with CustomAdapater

> In other words, the user holds down on the ListView which spawns the

If this is a ListActivity, you could try getSelectedItemId() or

Mark Murphy (a Commons Guy)
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!


2. No internet connectivity - no browser, no maps?


Just got the latest beta 0.9 version on my win32 system.

I can't access any web pages through the web browser, or any map data
through the maps sample applications.

I know I'm connected to the internets because, well I'm writing this
to you all right now. I'm not behind a firewall, don't have any proxy

This always worked fine on my setup with earlier versions of the
Android SDK. Am I missing some flag that needs to be set to get it to
allow internet connectivity or something?


3. ContextMenu onClickListener on a ListView with CustomAdapater

4. Removal of javax.sound

5. Start an andorid app through command line or system command

6. send SMS

7. Scaling 9-patch drawable *down*