background-process

Why does the background service stops while running?

六月ゝ 毕业季﹏ 提交于 2019-12-20 05:19:18
问题 I have a background service in my android application.In which a thread listening recent tasks running frequently.My service overrides both onCreate() and onStartCommand() methods. When i tried to open some applications like Gallery , Camera etc..., the service will be stopped.It calls the onCreate() method only and not onDestroy() or onStartCommand() .I tried to override onLowMemory() in this service but it logs nothing.The application saved internally by specifying android:installLocation=

Android background Service crash while It swipe out

这一生的挚爱 提交于 2019-12-20 04:08:28
问题 When i remove my app from task manager.0 process and 1 service left. App do crash again and again what should i do to resolve it? This is my service class. I want to ask one more thing the difference between OnStart() method and OnStartCommand() method? package com.example.vaccinationsystem; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.PropertyInfo; import org.ksoap2.serialization

Send HTTP Requests in Background Mode (iOS) Periodically

Deadly 提交于 2019-12-20 02:14:06
问题 I'm developing a great feature for my app which requires HTTP requests to be sent periodically in background. I have read already many articles and discussions here, but haven't come up with a solution because all suggestions I met on stackoverflow.com solve the problem only partially. Let me explain in details what do I want my application to do. Consider there is a website with API and I want to send requests (when app is in background mode) periodically to check the state of data on the

creating background processes in php for long running process

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 01:45:40
问题 Ok so forgive me if this is a repeat of another question, but after searching I have not found a clear answer. What I basically want to do is have my php web application fire off some event (like an emailer or report generator) that may take a few minutes to complete and immediately return control to the page. I come from a .NET world where this can easily be accomplished with a thread. So here's the workflow: User clicks 'generate Report' button ajax call made to '../blah/generate-report'

Django: Best way to send email in background?

試著忘記壹切 提交于 2019-12-19 06:57:33
问题 I am sending email from Django (using Webfaction). This is, however, quite slow so I'd like to send the email in the background, returning a response to the user even if the email has not yet been sent. Any ideas for what is the best way to do this? I have read about celery, but it seems like a lot of steps to set it up: http://markliu.me/2011/sep/29/django-celery-on-webfaction-using-rabbitmq/ That's Ok, but I'd like to know that this is the way to go before trying it out. How about threads?

iOS: Updating Media Information in the Background

有些话、适合烂在心里 提交于 2019-12-19 04:56:27
问题 I'm currently using MPNowPlayingInfoCenter for my app to show which song is playing, but I am looking to incorporate HTTP Live Streaming into my application, which will have any number of different tracks occurring in the background. Is there a way to set the nowPlayingInfo while the application is in the background (Call a function after a certain amount of time?), even though applications technically don't actually run in the background? Or is there a way to set the now playing information

iOS: Updating Media Information in the Background

余生颓废 提交于 2019-12-19 04:56:07
问题 I'm currently using MPNowPlayingInfoCenter for my app to show which song is playing, but I am looking to incorporate HTTP Live Streaming into my application, which will have any number of different tracks occurring in the background. Is there a way to set the nowPlayingInfo while the application is in the background (Call a function after a certain amount of time?), even though applications technically don't actually run in the background? Or is there a way to set the now playing information

CoreBluetooth repeatedly disconnecting

那年仲夏 提交于 2019-12-19 02:47:07
问题 I've looked up and down for this problem, but no one seems to have it. I have two iPads. One is acting as a Bluetooth peripheral that is always in the foreground. Since I am more interested in the central side, I have made my central iPad background-capable for BLE-central. My workflow is as follows: Central app runs and starts scanning Peripheral advertises service (or comes within range) Central device connects to peripheral and stops scanning Peripheral stops advertisement (or leaves range

How to keep GPS app running in background without pauses

这一生的挚爱 提交于 2019-12-18 13:52:12
问题 I have a problem keeping the GPS running in background. I succeded to keep the GPS running when the app is in background, but it stops sometimes. I noticed that it stops when i enter in a building and i stay there for 2-3 hours. "Stops" means that i don't receive any GPS point even though the location service icon is still on. Then when i get out i don't receive any points until I bring my application to foreground. I set the pausesLocationUpdatesAutomatically property to NO. So, everything

Periodic background synchronization

老子叫甜甜 提交于 2019-12-18 12:33:47
问题 Im quite new to iOS programming and now want to implement a periodic background synchronization to synchronize my server data with client data. What I want to achieve is comparable with Androids SyncAdapter where you can define a time interval (for example each 30 minutes) and the system will trigger the defined task automatically in the background. Until now I could not find such mechanism for Swift 3.0 so I need to ask if somone has experience or some hints for me how I can achieve this.