How do you modify the call log

by Seer » Sun, 12 Apr 2009 18:37:45 GMT

Sponsored Links
 Can anyone tell me how to modify the call log?  What permissions do i
need and is it possible to get some basic code to show how?  just a
few lines not whole classes or anything.



How do you modify the call log

by Mark Murphy » Sun, 12 Apr 2009 18:54:32 GMT


You don't, AFAIK. That is handled by the firmware.

Mark Murphy (a Commons Guy)  | 

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


Sponsored Links

How do you modify the call log

by Seer » Sun, 12 Apr 2009 19:05:22 GMT

 You can at least read the call log right? Do you know how to do that?
maybe i can start from there to write code to modify it.  The issue i
have is that if my contact phone number is 555666 then i modify the
outgoing call to call 1122,555666.  Problem is i want the call log to
show i called 555666 not that i used a calling card like service.


How do you modify the call log

by Mark Murphy » Sun, 12 Apr 2009 19:15:31 GMT



Use the CallLog.Calls content provider. You will need the READ_CONTACTS

It is possible that with the WRITE_CONTACTS permission, you will be able
to do insert/update/delete operations on that content provider. I seem
to recall trying that and it not working, but that was some time ago.

Mark Murphy (a Commons Guy)  | 

Android App Developer Training: 


Other Threads

1. Detect and pick up Gesture in a filled ListActivity


I have a piece of code that enables me to detect fling/swipe left and
right, thereby calling moveLeft() and moveRight().
This works fine in a normal Activity and ListActivity. When the
ListActivity screen is fully filled with entries this code
does not pick up the fling/swipe, but instead triggers the

protected void onListItemClick(ListView l, View v, int position, long
id) {

How can I code this both allowing fling/swipe left and right and also
detecting  onListItemClick?

Regards Jonas.

mGestureDetector = new GestureDetector(context, new
GestureDetector.SimpleOnGestureListener() {
            public boolean onFling(MotionEvent e1, MotionEvent e2,
float velocityX, float velocityY) {
                int dx = (int) (e2.getX() - e1.getX());

                if (Math.abs(dx) > MAJOR_MOVE && Math.abs(velocityX) >
Math.abs(velocityY)) {
                    if (velocityX > 0) {
                    } else {
                    return true;
                } else {
                    return false;


2. About to release first app to market.


I was wondering what people do to limit the phones that can purchase
my app on Android Market.  I image I can limit this to some extent by
using the API levels in the manifest but can I limit my app to just
Droid/Milestone?  I have only tested the app on these phones so I
can't be sure that it will work on others.  There are known issues
with the Milestone and choosing an OpenGL config, among other issues,
that I had to work around so it's not unreasonable that other phones
can have similar issues.

Also how do you do dynamic licenses via http post?



3. SyncAdapter -> sync frequency?

4. How can I test ACTION_POWER_CONNECTED event?

5. Alarm Manager clarification

6. How to query content://sms/conversations ?

7. How to fire a dialog from custom list adapter?