How to keep the protection against unwanted calls active

1796467_sShoudIAnswer provides a great way how to protect you against unwanted calls. If somebody calls you, the application checks the number and reacts according your settings. Unfortunately there are situations when the reaction is not fast enough. Why and how you can improve it?

Android Memory Manager

Phone devices can run very complex applications with high requirements to the phone memory. If the application requires more memory than  actually free, Android Memory Manager kills as much background processes as needed to free sufficient space. So basically any application which is in background (user is not interacting with) can be killed anytime without any warning. No difference for us – ShouldIAnswer application can be killed too.

What happens if ShouldIAnswer app is not running and incoming call is coming?

ShouldIAnswer is registered in the system to receive information about calls. If incoming call happens and the app is not running, the system starts it and sends information about the call. In some situation this can be very slow…for example…

  1. Incoming call occurs
  2. System must start the “Phone Ringing” application. To provide required memory, it kills some background apps first
  3. System must start all registered receivers….To provide required memory, it kills some background apps again
  4. ShouldIAnswer app must start, initialize and check number in the community database and display alert or block the call

If you have some older phone, low free resources or many active background applications, it can take even seconds to display the alert. E.g. our tests on old and overloaded Samsung S3 mini showed the Alert after 8s.

Solution? Welcome the Foreground Service!

Android system provides a way how to keep the application running. If you are listening music, the player will not be killed in the middle of the song. It’s thanks to the system feature called Foreground Service. Android system tries to keep foreground services running as much as possible..So enable it in the app settings and the reaction times will be much better!

Wait a moment! Why is the app icon in the task bar with visible sticky notification “Protection is active”? Remove it!

If you want to enjoy the benefits of the Foreground Service, you must accept the presence of app icon in task bar and sticky notification. This is a part of how the Foreground Services work. It’s done by the Android system and application can’t change this behavior. Notice that the earlier mentioned music player has taskbar icon and sticky notification too.

Application is set as Foreground Service, but it’s being killed anyway! Why?

There are many 3rd party memory cleaners in the app store. This cleaners use different formulas for deciding what process to kill or not to kill. If you have some memory cleaner installed, please add our app to it’s white list (list of allowed processes).

Any Issues?

We are here for solving issues and provide you with the best protection against unwanted calls! Feel free to contact us to support@shouldianswer.net.

Thank you!
ShouldIAnswer Team