Questions tagged as 'android-service'

0
answers

Does an Android service lock the app even when running in the background? [closed]

Does an Android service crash the app even while running in the background? Or is there something wrong with my application? I have a database where the last table has 3000 rows. With this I decided to insert in the background using a service...
asked by 09.11.2015 / 20:16
1
answer

Error: Service Intent must be explicit

Hello, I'm having the following error on android, can someone help me? Erro: Service Intent must be explicit: Intent { act=SERVICEPUSHNET } Code: SMART.JAVA package imm.pt.immsmart; import android.content.Intent;...
asked by 22.08.2018 / 10:40
1
answer

How to stop a service?

I created a VPN connection in my app through a service, at the click of a button, the connection is made. But now I want to know how to do the reverse, ie by clicking the disable this connection button. How can I do this? Procedure to call th...
asked by 23.11.2018 / 22:21
1
answer

Error starting service at startup (ACTION_BOOT_COMPLETED)

I'm having a problem initiating a service on android as soon as the phone connects I followed several tutorials but it always causes this error    06-04 23: 56: 27.305 10948-10948 / pluswallpapers.devmarques.com.wallpapersall E / AndroidRunti...
asked by 05.06.2018 / 05:02
1
answer

Prevent the service from closing

Hello, I have an android application that tracks gps signal, it works normal but every time it gets in the background it closes itself. I already researched the subject and saw that the android controls the closure of applications in the backgro...
asked by 12.03.2015 / 23:22
1
answer

On android 8 the Service stops and does not restart when Activity quits

I am testing a service but when the activity is terminated the service stops temporarily, then the service tries to restart, the onCreate method is called but onDestroy is called in sequence and the service is definitely called. I'm running o...
asked by 06.12.2018 / 20:23
1
answer

Bound Service using IntentService

I'm creating an IntentService with Binder, so I can communicate with this service from an Activity public class MyService extends IntentService { private ChatManager chatManager; private final IBinder mBinder = new MyBinder(); p...
asked by 31.07.2017 / 17:12
0
answers

Manipulate and filter Notifications on Android

I'm creating an Android app where I use a NotificationListenerService to try to intercept notifications. The intent is to intercept all notifications and let them pass only those that the user has pre-registered in the application. Unt...
asked by 24.05.2017 / 23:42
0
answers

Use Service to continue the operation of the player when it changes class [closed]

I want to use for when changing Fragment continue to run the audio and when it returns to class! isPlaying continue to appear the requested pause. How do I do this with the Service? import android.app.Fragment; import android.content.Context;...
asked by 28.12.2015 / 23:09
1
answer

Capturing events on volume button

I'm trying to record and capture the events on the Android volume buttons in order to start and stop a service. Researching found several solutions, using BroadcastReceiver, but it seems that none is working for me. What I did so far was b...
asked by 02.07.2015 / 19:51