01-22-2009 01:41 PM
I am developing an application which gives missed call alert to the user. I am using PHoneCallLog class, it has a variable TYPE_MISSED_CALL_UNOPENED this variable is true only when user see the missed call log and not just the missed call number.
I think there must be some API which gives this information because if I have missed call then it is shown on my home screen as soon as I view the missed call number it disappears. If anybody had worked on it before then please suggest some solution.
thanks in advance
01-22-2009 02:41 PM
thanks for your response, I am using both of them. But they actually work well user looks at the call log. So let us suppose one of your call got missed now when you look at the homescreen there will be a indicator which specifies that some call is missed. Now when you look at the list of calls by pressing DIAL(green) button you will see a list of calls made by you and the most recent missed call on the top. Now when you come back to homescreen Indicator is now gone because you have seent the number in call list.
But the 2 classes that you mention which I am also using work only when user go to call list screen and select the missed call number and choses "View History" or view call log from Message->View Folder->Missed Call->View Call Log.
I wanted to capture the first event that is - When a user got a missed call and just view the number the call list.
01-22-2009 02:54 PM
Right. Like I said before, use PhoneLogListener.
You record the missed call, you store up a reference to the call object, etc. (Not sure what you want to do after this, you havent said).
Am I misunderstanding your question?
01-22-2009 03:50 PM
Sorry for sounding confusing - let me try once more
Problem -I am talking about 2 event-
1. You got a missed call and u view it in call list with out opening the details or history details of call
2. you got a missed call and u view it in call list and then u select the missed call number and select "viewing history" option from menu option.
Since I am developing missed-call-alert application which will inform user only when user had not even had viewed the call in call list. It means my application will beep only when user had a missed call indicator on homescreen. Is there anyway I can get that event.
By using PhoneCallLog I can handle 2nd event only because my code will run only when user view call-Log and not when user does not have even viewed missed call number (event 1)
01-16-2010 01:22 AM
i am also trying for same thing. i also want to get alert/notification of unnoticed sms and missed call programmatically/using apis. have u got any solution that how to do it? plz reply. or can we approach another way that if we are able to read the homescreen dialogs events then we can do it.
with thanx and regards