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. Scroll and drag a TileView widget around by finger / touch

Just do the scrolling yourself.  You are going to need to do some
significant optimizations to be able to efficiently draw a board that size
anyway (checking update rects and such to minimize drawing); to have smooth
scrolling, you may well need to do more than that, such as having it
rendered in an off-screen bitmap and only updating the tiles on the edges as
you scroll.

I typically think that, if you are writing a game, stick it in one View (or
SurfaceView if appropriate) and do the work yourself.  The view hierarchy
gives you little advantage for a game.

If you do want to try the approach of a ScrollView kind of widget, just copy
the code to make your own widget and add horizontal scroll to it following
the vertical implementation as a model (and dropping the stuff you probably
don't need, such as all of the parts dealing with focus moving around the
scrollable region).












-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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

2. Is there a way to get a list about what was build into the system.img or not?

Hi all,

Is there a way to get a list about what was build into the system.img
or not?

Thanks,
Lianwei
--~--~---------~--~----~------------~-------~--~----~

3. Scroll and drag a TileView widget around by finger / touch

4. looking for developer to write an image application

5. New Game Published: PolyBreaker3D

6. Why do we need external/fdlibm other than use libm in Bionic?

7. Piracy and app "protection"