How to access the Android call list? - android

Hey, I want to access the Android call list, so I can see the contact name, the hour of the calling, the duration, the hour of the calling and the date. Where is it, and how can I access it?
Thanks.

I believe you're looking for the CallLog class, which is part of android.provider.
See more info at http://developer.android.com/reference/android/provider/CallLog.html
You should be able to call it using the constructor listed there. Hope that helps!
EDIT: This may actually be more helpful to you: http://developer.android.com/reference/android/provider/CallLog.Calls.html

Related

Get called number of an incoming call in android

My question may look a bit strange.
I want to know if, in android, it is possible to know which number has been called when you receive an incoming call (I'm not speaking about caller id).
For example: let's assume that my phone number is 555-12345, my operator will route to my phone every number starting with 555-12345.
This means that you can call me by dialing 555-12345, but also by dialing 555-12345-37967 or 555-12345-34 etc.
Is there a way to know which number the caller has dialed?
If it is not possible to do this using Android API, would be possible to achieve my goal at lower level? Maybe using a customized firmware?
I was searching for this and not found any answer, the sample app (sipDemo) do not handle incoming call too. Fortunately I found the answer:
mSipManager.getSessionFor(intent).getPeerProfile().getUserName()
Good luck ;)

how to modify the last call log in android

I am working on an android project. I would like to ask how to modify the last call log (phone number). I am using an incoming broadcast receiver so I know when incoming calls arrive. Need some advice. Appreciate
Your question seems like a duplicate of Delete call from call log after call end.
There is a content provider you can use to search for certain calls and delete them. Look at the question that I linked.

Android Edit Call Log

I was wondering if there was a way to modify the call log? I would like to edit date on the call.
If for example I received a call today I would like to edit the log and change the date to yesterday.
Anyone have any ideas?
That seems like a really weird thing to do, but...
The provider for call log data (CallLog.Calls) only publicly documents methods to query the data, not modify it. You could go into the Android source to see if there is an undocumented method.

On Android how do I get the phone number from incoming call?

I am trying to grab the "incoming_number" of an incoming phone call. I searched and found this post, but it's outdated and I can't seem to get this to work with Google's latest version of Android (4.0.3).
After reading the other post it seems that the easiest (and possibly only) way to trigger that a call is coming in is to set a BroadcastReceiver that reacts based on the PhoneStateListener, mentioned by: John Feminella.
When I set this up the same way it is displayed in the post by jakob the debugger never drops into the onCallStateChanged() method, and I have made the modifications that were mentioned in the remarks in jakob's post.. (onCallStateChange"d"())
However, I still am getting no luck and I figured that this method of grabbing the incoming_number has been deprecated and not working in ICS (4.0.3). Are there any other conventional or semi-conventional ways to achieve this?
In order to get this to work in newer versions of Android (4.0.3 etc) you need to make sure that your minSdkVersion is 3.. The issue with my code was that my minSdkVersion was 7..
Hope this helps others trying to figure this out! :)
What jakob does not mention is that you have to register the PhoneStateListener prior to use it. Put the following code somewhere before you want to intercept the incoming calls number (e.g. in the onCreate method of your activity):
TelephonyManager manager=(TelephonyManager)getSystemService(TELEPHONY_SERVICE);
manager.listen(new CustomPhoneStateListener(), PhoneStateListener.LISTEN_CALL_STATE);
Then the onCallStateChanged method should be triggered. I didn't know that this method is deprecated in 4.0.3. But I think as a quick solution this should still be fine.
Hope to have helped you.
Cheers

i want to use group call in android

Is this possible to call more than one people at the same time . i.e. conference calling.
This should be done by an application not by the default method of conference calling provided by Android.
At the same time can i call more than 1 person?
There is no API supporting this, as far as I know.

Categories

Resources