I want my app to run when the user clicks on the call log button. How can I do that?
Asked
Active
Viewed 132 times
0
-
means you want to run another application from current app ? – Paresh Mayani Apr 11 '12 at 10:41
-
1You need to use an intent. Try http://stackoverflow.com/questions/4556392/how-to-create-an-intent-that-opens-the-call-log-activity – Stev_k Apr 11 '12 at 10:42
-
1"click on the call log button" - Which button? – user370305 Apr 11 '12 at 10:43
-
Are you want to detect user click call button to call ? – Herry Apr 11 '12 at 10:50
-
@ paresh Mayani No, In mobile call log history button will be present I want to run my application when that button is clicked.Example:In message locker application when we click on the messages button the lock screen will be shown, which is the message locker app. – Midhun VP Apr 11 '12 at 10:54
-
@user370305 The default button in the phone to see the call history . – Midhun VP Apr 11 '12 at 11:03
-
@Herry No, I want to detect when the user click on the call log/call history button. – Midhun VP Apr 11 '12 at 11:03
-
As far as I know. Its not possible.. – user370305 Apr 11 '12 at 11:04
-
@user370305 The click on messages button we can detect is right? Then why this is not possible. Do you have any idea? – Midhun VP Apr 11 '12 at 11:06
-
Please show an example screenshot of what you need – Blitz Apr 11 '12 at 13:15
1 Answers
0
You have to use BroadcastReceiver and app work like service and service activate when you click on call log button and you app work.
This is the concept behind it.
For broadcast receiver http://www.vogella.de/articles/AndroidServices/article.html

Newts
- 1,354
- 14
- 23