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. How do I remove all the spans of an editable?

Hi, i' trying to remove all the spans in a editable. I tried with
clearSpans(), but it hangs the program, i don't know why. is there any
other method?

it's necessary to say that it's on a TextChangerListener put in the
same editable, on the afterTextChange method.


2. MemoryImageSource - HEAD HURTING

Ok, so I'm porting an apple ][ emulator to android - unfortunately MR
Hugg has quote "use(d) the heck out of the MemoryImageSource class"
for his AppleDisplay.class (map memory >> image = emulator image

Any idea how I can make this happen (efficiently of course) on
Android?  I've delved through Harmony and just got mydroid sync'd.
I'm lookin for handouts here ppl...



3. Cannot download. The content is not supported on the phone.

4. Monket testing results in fatal ANR

5. Enhanced Sensor API


7. Shared Libraries not supported. Use Service