FAQ Database Discussion Community


How can I download for longer than three minutes with Dropbox?

ios,ios7,ios8,dropbox-api,background-task
I'm at a point with my app where i'm able to download files, but there is a problem where if the download is >4 minutes, it times out. I've managed to boil it down to the it being 1 min for iPad auto lock, 3 for the background task. I'm...

WP8.1 C# Windows Phone 8.1 Background Task WriteableBitmap Thread Error

c#,writeablebitmap,background-task,microsoft-band
I am trying to update the band Me Tile image from a background task and i get the following error at WriteableBitmap: System.Exception: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)) at Windows.UI.Xaml.Media.Imaging.WriteableBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight) at BackgroundTaskCS.UpdateBandTask.<LoadImage>d__f.MoveNext() --- End of...

Android show user a feedback on screen when running background task

android,notifications,background-task
I want to show feedback to user when user is using my app and a background task is running. I don't want to show it on the notification area but just on the screen, for example under the user's name showing 'syncing ...' Similar functionality is found in Wunderlist app...

SystemMediaTransportControl GetForCurrentView() fails in audio background task on Desktop Device Family (UWP C#

c#,windows-10,background-task
I'm trying to bring over my C# WP 8.1 Background Audio Task to UWP and everything works, except trying to get the UVC using Windows.Media.Playback.SystemMediaTransportControls.GetForCurrentView() throws the current exception on Desktop devices: "Could Not Find an appropriate view to be associated with this instance of the MediaPlaybackControl. Please make sure...

Background task spontaneous completion с#

c#,windows-runtime,windows-phone-8.1,background-process,background-task
Register a background task: string myTaskName = "Task"; foreach (var cur in BackgroundTaskRegistration.AllTasks) if (cur.Value.Name == myTaskName) { return; } await BackgroundExecutionManager.RequestAccessAsync(); BackgroundTaskBuilder taskBuilder = new BackgroundTaskBuilder { Name = "Task", TaskEntryPoint = "Background.Task" }; taskBuilder.SetTrigger(new TimeTrigger(15, true)); BackgroundTaskRegistration myFirstTask = taskBuilder.Register(); Background task is created in the Windows Runtime...

Background Fetch iOS - Terminated Apps

ios,ios7,background,background-task,background-fetch
I think this might be answered quiet a few time, but still there are some unknown cases that I wanted to clarify. I have been looking at Background Fetch API for one of my iOS application. I learned from several articles that fetchNewDataWithCompletionHandler will get called when OS decides to...

PID of background task is different to the listed task PID using ps

linux,bash,pid,background-task
I have a strange issue, I can't quite get my head around. What I do is run a function called fn_rundumper which basically just calls the bash code: pterm -z "cmd.sh" param1 & Here is the output of that, which includes the background pid "27938858": fn_rundumper running fn_dumper... [1] 27938858...

how to use django-background-tasks

python,django,background-task
I am making a django application. To calculate the rank of the feeds based on lines and comment, I am trying to use django-background-tasks. the function I am using in nodes models is: @background(schedule=60) def get_score(self): p = self.likes+self.comments # popularity t = (now()-self.date).total_seconds()/3600 # age_in_hrs # last_activity = n...

What is the best way to do the long background task in Windows 8

windows-8,windows-runtime,windows-8.1,background-task
I'm developing Windows Metro App and in my App I need to download some information(about 60Mb, every time) from server in background. Download should occur regularly, for example every 8 hours. So I tried to use Background Task, but there are some CPU and network quotas(https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977051.aspx), and I can't do...

AFHTTPSessionManager convenience methods (GET, POST, PUT, etc) and background transfers

ios,afnetworking-2,nsurlsession,background-task
I've built an app around AFNetworking 2.0's AFHTTPSessionManager and its nice HTTP convenience methods. I now need to ensure that all of this networking functionality can run in the background, and I'm rather concerned. Reading Apple's documentation, I can see that data tasks are not supported for background sessions. After...

Microsoft.Phone.Scheduler.Alarm in a BackgroundTask

c#,alarm,background-task,win-phone-silverlight-8.1
I recommend your assistance. I am using Silverlight 8.1 to program an GPS based alarm app (Because the Microsoft.Phone.Scheduler.Alarm api is blocked in WP 8.1). Now I am trying to create a BackgroundTask triggered by the GeofenceMonitor. My problem is that a BackgroundTask must be located in a "Windows Runtime...