Questions tagged as 'android-service'

1
answer

App stops responding when you run onStartCommand

I call service on onPause() of my activity and as soon as I leave the app, it stops responding after a while. From what I've researched it may be that the processes are too heavy to run in the background. I need to check the time to see i...
asked by 26.06.2016 / 02:57
1
answer

How to call a Service through another application?

I have two applications, application 1 has several CRUDs, application 2 has several services and notifications. When trying to start the Service by application 1, this is happening:    java.lang.SecurityException: Not allowed to start serv...
asked by 07.03.2016 / 14:18
0
answers

Android - Keep Running Service

I have a system that uses Services to run in the background. It works fine while the app is open or closed, but in the list of recent apps. When I remove this list, I get the log I/ActivityManager: Killing 4419:com.cybermickey2077/u0a34 (adj...
asked by 15.07.2018 / 22:32
1
answer

How to execute a method in a certain time?

I need at certain scheduled times, to execute a method even if the user is outside the application.Why do I research I will have to use services? I did not quite understand how to program the time, I just left the class created here: public cl...
asked by 23.07.2014 / 07:23
1
answer

Timed and cell-phone notifications

Hello. I'm making an android app that notifies me when I have to turn in a school assignment, and if it's the day of the assignment or a day before, I want to be notified at certain times. The home screen is where the service starts, where I...
asked by 12.04.2015 / 08:49
0
answers

service does not start after clearing the memory

Hello everyone, I'm developing an application that requires a service to warn the user according to events at large intervals, sometimes within 24 hours ... my 2 problems are as follows, my cell phone as many, has the function to "cle...
asked by 27.01.2017 / 12:59
1
answer

End service from another App

This is the following, I will have 2 applications running on a client's mobile phone, one of them just starts some services and the other does some operations, the problem is that I can not unify the two, it's a long story, now I'd like to know...
asked by 29.04.2015 / 14:41