Call Log on HTC Hero

by Denis Souza » Wed, 09 Jun 2010 21:59:07 GMT


Sponsored Links
 Hi,

I have an app that changes the number being called and updates the
call log after the call to keep the original number.
In the emulator (and on most devices) everything works fine but on the
HTC Hero I can't seem to update the number in the Call Log. I run an
update but nothing happens.

Until recently I was using Android 1.5 on the Hero and I could work
around this issue by deleting the log entry and creating a new one
with all the same data, but after upgrading to 2.1 I can still delete
the old entry but when I insert the new one the only info that gets
inserted are the phone number, call type and time of call. The contact
name and number type don't get saved and it always shows on the log as
an unknown number.

It sounds to me like HTC's sense UI breaks the call log somehow. Has
anyone seen this issue and has a workaround for it? Or is there
something I might be missing about the call log?
Ultimately it's a database, right? So there must be a way to do it if
I have access to the database.

Thanks in advance,
Denis Souza

--



Call Log on HTC Hero

by Mark Murphy » Wed, 09 Jun 2010 22:09:09 GMT


 


You do not have access to the database.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.6 Available!

--


Sponsored Links


Call Log on HTC Hero

by Denis Souza » Thu, 10 Jun 2010 00:57:11 GMT


 Ok, bad choice of words... still, I can generate requests to a the
call log's content provider. Does that mean that HTC likely replaced
the content provider with a buggy/restrictive version? If that's the
case would there be another way to change that data without root
access?






--



Call Log on HTC Hero

by Mark Murphy » Thu, 10 Jun 2010 01:08:39 GMT


 


I have always considered CallLog to be read-only. It is only a matter of
time before somebody realizes the problems inherent in it being
read-write (e.g., forging outbound phone call records) and locks it
down. I am rather surprised the core Android team hasn't locked this
down yet.

However, given your apparent symptoms, it is likely that HTC replaced
it, and equally likely that the CTS doesn't test a read-write CallLog
very much.


Probably not.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books 

--



Other Threads

1. How to add a new application to the cupcake source code?

These kinds of questions should be posted to android-porting, since they are
outside the bounds of the supported SDK and so require building your own
system image.






-- 
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, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

2. Inserting the 'status-bar' within ones own full-screen View

I'd be interested in knowing where this in in the documentation.  The status
bar is not something you can insert into your view and manage at all -- it
is a completely separate window, on top of your window, that is owned by the
system.  The only thing you can do with it is have it hidden by the system
while your window is visible, with one of the Theme.*.NoTitleBar.Fullscreen
themes.






-- 
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, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

3. How many calendars do you use with the android gmail/calendar application?

4. questions about tabHost

5. Proxy SDK 1.5r1

6. Switching carriers

7. SurfaceView behavior - what gives?