Questions tagged as 'android-service'

3
answers

Firebase notifications

How can I make the firebase notification that arrives while the screen is off emit the sound I have in my raw folder. (if the app is in the foreground the sound runs without problem)     
asked by 01.06.2017 / 07:42
1
answer

Android studio - keep service connected to mysql

I would like to know how I can maintain a service connected to mysql from an android service and extract information. So far I make an HttpURLConnection towards a php file that makes the process, but only the service is executed only once, after...
asked by 08.05.2018 / 18:45
0
answers

How to detect or listen when notifications are received from any app?

I would like to know how it can be detected when a notification is received, I understand that it can be done using AccessibilityService, but I can not get it to work, this is the code that I have in my service: public class MyAccesibilityServ...
asked by 30.03.2017 / 01:31
2
answers

Android Studio - end activity from IntentService

I have an activity that initiates an IntentService which verifies a code that I entered and if it is correct it sends me to a new activity always from the IntentService, then a new activity starts but the previous one I can not finish it because...
asked by 23.05.2018 / 16:09
0
answers

How to access the methods of my Bluetooth service?

I have an application that from the MainAcivity increases or excretes a int Grados depending on which button is pressed, the add or subtract. Since BluetoothActivity turned on and off the Bluetooth and launched a service that handles t...
asked by 12.10.2018 / 23:16
0
answers

Is it possible to link a service that starts with starService?

I have a service that handles the bluetooth connection and I have to keep it alive in the background so I start it with starService. my question would be if I can link the service through its onBind method since I need to interact with one of th...
asked by 13.10.2018 / 02:38
1
answer

AlarmManager does not work when the device is rebooted

I am making an application that, given a specific time and date, shows a notification on that date and time. Everything works normal but the problem arises when I restart the device, when this happens the notification does not jump as expected,...
asked by 17.06.2018 / 19:22
0
answers

Android service closes when I close the app that starts it

I'm trying to do a service that runs in the background when the app is closed, I share the code I'm using: Namespace myapp.droid.mynamespace Public class miservicio : service { Private LocationManager lManager; Public Location GetLoc...
asked by 21.02.2018 / 00:11