problem in deleting Call Log

by shahzad ahmad » Wed, 18 Feb 2009 21:39:13 GMT


Sponsored Links
 Hi,

I can easily delete the whole call log with following code



getContentResolver().delete(CallLog.Calls.CONTENT_URI,null,null);



I can query a particular call log with following code

            delUri = Uri.withAppendedPath(CallLog.Calls.CONTENT_URI, "2");

            Cursor cursor =
getContentResolver().query(delUri,null,null,null,null);

But i always get unsupported function error when i try to delete a single
call log

            getContentResolver().delete(delUri,null,null);


Please guide me how to resolve this issue .

thanks,
shahzad

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



problem in deleting Call Log

by Chandra Mouli » Wed, 18 Feb 2009 21:49:43 GMT


 Try cursor.deleteRow() on the cursor you got from query.







-- 
G . chandra mouli

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


Sponsored Links


problem in deleting Call Log

by shahzad ahmad » Wed, 18 Feb 2009 23:14:04 GMT


 I'm using SDK 1.0 r2 . This fucntion cursor.deleteRow is deprecated in
latest SDK






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



problem in deleting Call Log

by david liu » Thu, 19 Feb 2009 01:35:31 GMT


 There are three paremeters for delete(delUri,null,null),  I think the first
one is about the table which you want to operate, the second is Where
clause, here you need put the selecting condition (such as, rowId = 2), the
third one we can use null.
You also can refer to the instruction of this method in the package
"android.database.sqlite.SQLiteDatabase".

On Wed, Feb 18, 2009 at 11:13 PM, shahzad ahmad






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



problem in deleting Call Log

by Gulfam » Fri, 06 Mar 2009 19:40:01 GMT


 Hi,

  I am facing the same problem for deleting perticullar call log
any one can help me i have tried as david liu said but not able to
delete

Regards,
Gulfam






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



Other Threads

1. Great Idea in need of better JAVA pro

Hi,
I am a practicing Emergency Medicine Physician and specialized in
Ambulatory Care Medical Centers.
Also, I have been involved with computers programming since Fortran,
Apple 2C, 8086 and on.
Android peaked my interest, as I have, what I consider to be, a great
app for use when visiting a doctor
office for a sick call.  It is well thought out medically and medico-
legally, accurate, interactive and very user friendly.

Due to my time limitation, and the fact that Ie never written in
JAVA, I believe that with one or several enthusiastic
Android developers (tech-wise), a working prototype App could be
running in a short time.

I would like to find Android developers to assist me.

Also, I think that this program has a great chance of vertical
leverage.
Please drop me a note as soon as you think if you would be talk this
over with me.
Thank You,
Sal Perconte, MD

sperco...@comcast.net




--

2. Motorola Android Improvements

So I've owned my Droid phone for a little over a week now and I have
pretty much gone over the entired phone OS. I really like the layout
and style of it. It's alot of phone with very little issues. I have
some complaints about the buttons and a few issues with some of the
software. As far as the Motorola version of the Droid I see the volume
bottoms totally being in the wrong spot. Not to mention the power port
is a huge pain when using it while plugged in. The whole cord is right
in your face. A wireless headset would take care of that but it is
still a pain. The touch buttons on the bottom are way to easy to push
since they won't require alot of pressure. I think they should all
require a double tap to work.. and the fact that if you hold them down
they do stuff also. I think for that it should be a tap and then
hold.

OK.. Software issues.. Where do I begin.

1. Make it so you can have seperate ring tones for each contact. It
can't be that hard. Plus make it so you can set a different tone for
messages per contact.
2. The Exchange E-mail app sucks. Needs to be redone conpletely. If I
have folders inside of the inbox folder it can't see them or see the
new E-mails that come in..
3. FB app sucks. Can't Message people in the app.
4. Make an option to turn the camera sound on or off. No one wants to
hear that sound anyways.
5. When deleteing or archiving G-mail make it ask you again to make
sure.. PITA!


So those are a few things I found that I think that could be improved.
I used to have a LG voyager and those options were on that phone so I
miss those. Other then that I think the phone is killer compared to
what I've had before.

--

3. Communication between AppWidgetProvider and Configuration Activity

4. Possible in emulator? Querrying google map? Unlocking Anrdoid Example

5. SlidingDrawer interaction

6. Record voice calls on HTC Tattoo or HTC Hero

7. Getting IM Ids from the contact database in 2.0