Android :: Suggestions To Remove On Boot Service To Detect Incoming Calls
Jul 14, 2010
I have gone through many threads in this group about avoiding the use of everlasting Services, Timer/TimerTask sleep issues and detecting phone calls, but not finding the answers I am looking for this app, I will really appreciate any help you can provide me. I am working on an App to detect incoming calls and when the call time is equal to 5 minutes indicate the user by vibrating the phone. In my strategy I am creating a Receiver that listens for RECEIVE_BOOT_COMPLETED action and launch an everlasting Service which sets up a PhoneState Listener.
1) Is there any other strategy to be always listening for incoming calls and thus avoide to using an on boot created Service? (besides the Service eventually gets killed and I am not able to detect incoming calls) A first approach I took here was setting up a Timer and TimerTask when CALL_STATE_RINGING state was detected and after 5 min (if the call continues) vibrate the phone for 2 seconds. However sometimes the timer phone vibrates after an hour a call was placed (the vibration happens in the run() TimerTask method. I know Android can go to sleep and that could be the reason my timer is not run on time but 2) How can Android be slept if I am in a call? Is the call just handled by the modem or how come? Next, to overcome this issue I tried preventing the Service from going to sleep by putting it in foreground state calling startForeground (NOTIFICATION_ID , notification), still the same behaviour the timer is run long after the call was placed 3) does startForeground prevent Android going to sleep or it is just aimed to keep the Service's process in memory? 4) A wake lock would do this job ? (I have not tried this) Encouraged by many post I tried using an Alarm and it works (thought I do not want to use it because I think it should be possible to accomplish with something lighter) but when the phone vibrates it just keeps vibrating till I remove the phone from my cheek (the screen is turned on again) 5) Why? Is it that Android started vibrating the phone and then went to sleep? so the vibration is turned off when Android awakes, when the screen is turned on again? 6? Ideas of how to stop the timer?
View 3 Replies
Sep 28, 2010
how should I create a service that would keep on running in the Background and listen for incoming and outgoing calls? I don't want the service to die at any point in time.I have created a Broadcast Receiver in my service class that is set for ACTION_PHONE_STATE_CHANGED action.In my BroadcastReceiver, I have set up a PhoneStateListener that would listen for changes in phone states.Is this the right approach?
View 3 Replies
View Related
Feb 16, 2010
Does anyone know how I can change something in the settings to remove the +1 in front of all of my incoming numbers?
Example: +1(555)555-5555
When someone leaves me a message and i press callback it calls that number and Verizon wont recognize that +1 extension in front of the area code.
View 3 Replies
View Related
Aug 20, 2010
Is possible in android, detect the latitude and longitude from Incoming Call?
View 12 Replies
View Related
Apr 29, 2010
I'd like to detect sms incoming and outgoing automatically from my application at background whenever this app is opening or not. how to code?
View 2 Replies
View Related
May 25, 2011
I'm working on an application that does something during a call. So I understand I need to use a service. But how does my application detect that a call is incoming or the call is answered or whatever before I launch the service?
View 3 Replies
View Related
Feb 25, 2010
my VoiP-client would like to block all incoming calls to the phone while my own call is taking place. Is it possible to do this somehow?
View 1 Replies
View Related
Jun 17, 2010
Is it possible to disable incoming calls?
View 2 Replies
View Related
Jun 29, 2010
You can intercept a call on Android?
View 2 Replies
View Related
Aug 27, 2010
I was trying to come up with an app that works on the call that a user gets on his phone. For this I wanted to know whether it is possible for me to get intimated when a call comes to the phone and is it possible to intercept the same.I tried to go through quite a few forums but could not get conclusive evidence on how to achieve this.Does anyone have an idea whether this is feasible and if so then how?
View 2 Replies
View Related
Nov 16, 2010
I'm a newbie android developer, I'm trying to develop an application; a background service which listens to incoming/outgoing calls/messages.
View 1 Replies
View Related
Nov 22, 2010
I have an app on Android that reacts to incoming calls. Now, since the OS shuts my app down whenever it want, I need a way to to listen to the incoming calls and launch the app when it happens. Will a BroadcastReceiver help? (just like launching on device restart).
View 3 Replies
View Related
Oct 22, 2009
how do I forward incoming calls to another number?
View 2 Replies
View Related
Jun 20, 2010
My question is kinda strange: is there a way to show incoming calls and SMS on my computer screen while my HTC Legend is connected to it by USB?
When I'm the university library I've to put the cellphone in silent mode and often I end up loosing calls&SMS while I'm working on my laptop.
So it would be very nice if there was a way to notify me with incoming calls (maybe on windows 7 task bar) while my cellphone is connected to the pc via USB.
Does anyone know a way to achieve this?
View 2 Replies
View Related
Nov 12, 2010
what is the app that shows the info of an incoming caller who has blocked their id?
View 2 Replies
View Related
Nov 15, 2009
Maybe I am missing something here but for the life of me I can not figure out how to change the ring tone so that all my incoming calls through GUAVA ring what I want to specify. I have the HTC G1, running the latest version off this site(not the app store).
View 2 Replies
View Related
Jun 25, 2010
I have small simple Service and big MainActivity with UI. Service is called periodically from AlarmManager. My Service need to know if MainActivity is on the screen and inform MainActivity about state changing.
View 3 Replies
View Related
Oct 22, 2009
i have a service (that extends Service). public class MyService extends Service ..
View 2 Replies
View Related
Nov 11, 2009
I was looking for about this subject and always I read de same: "It is not replace inCallScreen", "You can't modify inCallScreen", ... I need react to an incoming call and show two big buttons any way (new dialog, modifing incallscreen,...). I got start a new activity, but it appears after I reject incoming call. I need my activity appears over inCallScreen. Another thing I thought is use NDK, but I don't know if NDK support this.
View 6 Replies
View Related
Sep 6, 2009
Why android doesn't permit to record audio from speakers, for example in incoming calls ?
I've searched in the web and there is no way to record incoming stream audio...the only why is the follow :
Java: MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
that records from microphone. Why this terrible bug?
I have founded some app that records incoming calls,
View 5 Replies
View Related
Aug 13, 2010
Is there a way to automatically answer an incoming cell call from an android application? I know it can be detected etc. but can it be programmatically answered?
View 1 Replies
View Related
Nov 25, 2009
I have an app that listens to incoming Calls. If the user has another app that listens to the same (Call popup applications in specific) my process is getting killed - any solutions or ideas on how to prevent this ?
View 2 Replies
View Related
Jan 17, 2010
I've seen some posts about larger pictures on incoming calls, but I wouldn't mind having ANY pics.
How do I get pics instead of the Droid robot? The robot is cool, but still....
View 4 Replies
View Related
Jan 7, 2010
Question.. Is there anything out there that allows you to broadcast an incoming call (either an alert tone or a ringtone) over a boat or car stereo? I'm looking for something that, while I'm on our boat listening to music or the engines are running, or both, will do this so I don't miss calls. I know there's something out there to broadcast music from your phone over the stereo and you can take incoming calls, etc.. But I either listen to Sirius or my iPOD and won't be using my phone as a music source.
View 4 Replies
View Related
Aug 4, 2010
I have had my evo for a little over a month now and I love it, only problem is it wont accept any incoming calls anymore. At first it would accept some but now it I don't get any. I updated to froyo today hoping it might fix something but no luck. I took it to sprint a few days ago he updated it and said see if it works now if it doesn't take it to the repair shop and if they cant fix it then they will give you a new one but I don't know how you'll be able to get a new one because we don't have any. I would rather not get a new one because I got the invisible shield put on my phone and I would rather not have to waste money getting a new one/putting it on. Has anyone else heard of evos doing this or know of anything that could make this happen? Everything else works fine on the phone.
View 5 Replies
View Related
Mar 3, 2010
I want to create an app or background service that just listens for the launch of a 'default' app, say Contacts or the built-in Gmail app. If the contact app is clicked, I want to transfer control to my app temporarily (e.g. present a Yes/No popup to the user or increment an internal counter of my app ) and then redirect the user back to the app that was clicked. I want to do this only for a couple of 'well-known' built-in default apps, not any third party apps..
View 3 Replies
View Related
Dec 21, 2009
Does the droid have the same app or something similar to the iphone? I like how the contacts picture for incoming calls takes up the whole screen. Please tell me there is an app. Im pretty sure im not the only one looking for this.
View 2 Replies
View Related
Mar 29, 2010
I would like to know whether this is actually possible in Android?
When Android phone receives an incoming call from a specific number the phone's ringing should stop and also the screen should not blink. What I mean is the user should not be able to know that there was incoming call, but actually there was.
I do not want to delete any call logs, just to stop sound on incoming call from a specific number and that too at a specific time.
View 1 Replies
View Related
Nov 3, 2010
How can we reject incoming phone call in android if the incoming number is already stored in phonebook.
What method is used to reject incoming calls? I know how to detect incoming calls but don't know how to reject.
View 1 Replies
View Related
Oct 9, 2010
I just upgraded my Sprint HTC Hero to the latest official firmware. I was looking for 2 apps if they exist:
1: I had a program on 1.5 that was called city caller ID and it displayed the city and state of incoming calls. When I upgraded to the newest software, I can't locate this software in the Android market. So I was wondering if anyone out there had any suggestions on Caller ID apps that work good?
2: In regards to the other app, I was wondering if they had something like the Blackberry does where when I have the phone plugged in and the screen times out, a clock would be on the screen instead of just the normal black screen?
View 2 Replies
View Related