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.

thanks

Chris
--~--~---------~--~----~------------~-------~--~----~



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)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_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


 


Yes.


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

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)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Training:  http://commonsware.com/training.html 

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. how to remove a directory?

Hello,
     I have some questions.
(1)
     I want to remove a directory on filesystem, it is successful but
some logs info was printed: unable to unlink "/data/data/packageName/
dir1/dir2".  there are no any file in dir2.

    my codes:

    File dir = getFileStreamPath("dir1");
    File subdir=new File(dir, "dir1");
    if(!subdir.exists())
    {
         dir1.delete();
    }

(2)
    If there are some files in dir2, can I remove the whole directory?

   thanks.

--~--~---------~--~----~------------~-------~--~----~

2. How can i display message in thai language ?

Hi guys,

In my application i need to display some messages in thai language.
can anyone suggest me how can i display thai language in my
application ?

any info/suggestion would be greatly appriciated.

many thanks,
Freshman
--~--~---------~--~----~------------~-------~--~----~

3. Can't touch on the screen when adding view in arrayadapter

4. how to add file to content provider

5. keystore using the ADT Export Wizard

6. Translating Android to other languages

7. Verify - Regular Cupcake update = No root?