Questions tagged as 'service'

1
answer

Implement a CountDown Timer in a service

I have a button that when pressed starts a countdown, and I want this account to be maintained until it ends even when the app closes or changes from Activity . I understand that one way to do it is to use a service in the background, but...
asked by 25.08.2017 / 03:19
1
answer

Error trying to create an NSD service

I am trying to create a service to connect to the Kore application. To create this service I was looking at the code of android developer . I have literally only followed the steps indicated on the page. Still, when I start my application, it s...
asked by 31.12.2018 / 19:20
2
answers

Access-Control-Allow-Headers in ServiceHTTP (POST) in agular 7

Someone could help me I have a problem. But I can not interpret it. user.service.ts postUser(user:User):Observable<User[]>{ let body = JSON.stringify(user); let headers = new HttpHeaders({ 'Content-Type': 'application/jso...
asked by 14.11.2018 / 21:07
0
answers

Helper custom in Symfony

I am developing an application in Symfony 3 and I would like to know what is the best way to create a Helper that can obtain defined parameters. Let me explain: I have a file of parameters with some keys of an Api defined: parameters: a...
asked by 25.04.2018 / 21:03
1
answer

C # capture windows service messages

I am developing a small application in C # to "manipulate" windows services (specifically apache). I have already managed to start, stop and other operations. What I now want is to obtain the (messages) results that the service returns....
asked by 17.05.2017 / 16:52
1
answer

Android MediaPlayer with Service, implement Pause

Goodbye everyone and thanks in advance, I'm creating a simple player in Android Studio that basically has three buttons, pause, play, stop. To be heard on the background I call the class MediaPlayer from a Service . Running and clos...
asked by 27.02.2018 / 13:31
2
answers

Get the return value of a subscribe

I am using an Apirest and I have configured a .service file in Angular with Observables. I need to get the value that the subscribe returns to be able to return it with a return but it always throws the return before I finish the http.service...
asked by 03.01.2019 / 15:05
1
answer

Create service that runs npm start

Hello friends of the community. I have a project made node.js in react and express and I want to deploy it in a virtual machine with ubuntu 16.04 creating a service that runs npm start . On my pc I run the project with npm start which i...
asked by 08.11.2018 / 01:38
1
answer

Add CORS to SOAP service with Ionic

is to make a query. I have a SOAP service to which I need to implement CORS to later consume this service from a mobile app on Ionic, but I do not know where to start or how to do it correctly. I know that the implementation of these in my Servi...
asked by 07.11.2018 / 23:06
2
answers

Call MainActivity variable to a service class in Android Studio

I have an application that gets the user's location, now I need to send those values (latitude, longitude) when launching a service .. //Variables donde se guardan las coordenadas Double lati = new Double(0); Double longi = new Double(0); //V...
asked by 17.05.2018 / 06:54