I am creating an app that keep tracks of missed-calls, the problem I am facing is my app is killed by android os and my service stops running so after that I am not getting missed call data in my app what shall I do ? are there any special permissions that I should include in my manifest to keep listening to the calls. or can I avoid android os from killing my service, or what else can I do to keep my service alive. I have used a started service, but still it is not helping. what shall I do ?
Asked
Active
Viewed 132 times
1
-
1check this it will definately help http://stackoverflow.com/questions/3665183/broadcast-receiver-for-missed-call-in-android – Sunil Chaudhary Apr 20 '17 at 05:51
-
1Use firebaseJobDispatcher https://github.com/firebase/firebase-jobdispatcher-android – Mahesh Giri Apr 20 '17 at 05:51
-
1and this link too http://stackoverflow.com/questions/27185989/missed-call-detection-in-android – Sunil Chaudhary Apr 20 '17 at 05:52
-
Make sure your service is STICKY. Can you post your service's "onStartCommand"? – Mustansir Apr 20 '17 at 06:05
1 Answers
1
Use BroadcastReceiver
instead Service
Broadcast Receiver For New Incoming Phone Call"

Arsalan Khan
- 403
- 3
- 11