Questions tagged [resume]

Starting something again after stopping/pausing it. (DO NOT USE for any topic related to employment or CVs)

Starting something again after stopping/pausing it. Do not use this tag for résumés or CVs.

560 questions
5
votes
1 answer

PHP download resume in Chrome HTTP RANGE not working

I'm using the following code, I adapted: http://ee.php.net/manual/en/function.fread.php#84115 to my code to allow download resume, it works great on firefox but doesn't work at all in chrome. If I try in chrome, the file is downloading, I pause it,…
Mokkun
  • 708
  • 4
  • 14
5
votes
2 answers

ionic app resume and pause

I want my app to do something when it comes form it's background state to the active state. I understand according the cordova documentation I can do this with the code below and this is working. // device APIs are available // function…
user1242574
  • 1,257
  • 3
  • 12
  • 29
5
votes
2 answers

NSURLSession with invalid resume data

I use [NSURLSessionConfiguration defaultSessionConfiguration] to config my url session. I pause a task by calling cancelByProducingResumeData: to produce a resume data, and save it to the disk. When I want to restart the task, I call…
5
votes
4 answers

How to Pause and Resume Audio recording in android

I am developing an audio recording application using MediaRecorder class. I have the following requirement: 1.When a pause button is pressed then pause recording. 2.When a resume button is pressed then resume recording where it paused. I try this…
Rana
  • 134
  • 2
  • 2
  • 11
5
votes
1 answer

when you terminate() a Thread (class TThread), does it exit every child of this thread?

I have a code in Delphi which does the following: procedure THilo.Execute; // (which is the thread) begin inherited; FreeOnTerminate := True; while not Terminated do begin (...) Sleep(100); end; end; and now somewhere else, in…
user2308704
  • 304
  • 2
  • 10
5
votes
2 answers

Linux suspend/resume code flow (on android phone)

Does anyone know any good reading on how the whole process and code flow are for android/linux suspend/resume (after pressing the end key on the phone)? I am trying to understand and read the related code and files. Or, maybe if somebody can…
user1804788
  • 187
  • 1
  • 3
  • 12
4
votes
2 answers

iPhone Game pause and resume, is it worth implementing?

Allow me to describe my situation: I want to develop a game, that is round-base, and pay-to-play. That means you pay one coin, for one round of game, like Pinball etc. The problem is, when there is interruption, ideally the game should pause, and…
Gapton
  • 2,044
  • 2
  • 20
  • 33
4
votes
0 answers

Is there a way to get snprintf to resume at the discarded characters?

For reasons beyond the scope of this question, assume I have a pre-allocated set of discontinuous memory buffers. I want to be able to print a formatted string into as many buffers as it takes to hold all the characters. I don't want to…
AShelly
  • 34,686
  • 15
  • 91
  • 152
4
votes
1 answer

How to resume playing from background

I am making an online radio station app. The app works good. My radio doesn't resume after the call is ended. And I have to restart it again. Here is my code: void MyAudioSessionInterruptionListener(void *inClientData, UInt32…
Kumar sonu
  • 535
  • 11
  • 24
4
votes
1 answer

Resuming a large file write in Python

I have a big file transfer (say 4gb or so) and rather than using shutil, I'm just opening and writing it the normal file way so I can include a progress percentage as it moves along. It then occurred to me to try to attempt to resume the file…
Cryptite
  • 1,426
  • 2
  • 28
  • 50
4
votes
1 answer

Is it possible to pickle itertools.product in python?

I would like to save the state of itertools.product() after my program quits. Is it possible to do this with pickling? What I am planning to do is to generate permutations and if the process is interrupted (KeyboardInterrupt), I can resume the…
repzero
  • 8,254
  • 2
  • 18
  • 40
4
votes
3 answers

Java threading problem

I'm using multiple threads in my application. Basically I have a combo box and upon selecting Inbox, p1 resumes and p2 is suspended and upon selecting Send, p2 starts and p1 stops. Below is the code (I'm sure it's not perfect) public void…
Krt_Malta
  • 9,265
  • 18
  • 53
  • 91
4
votes
2 answers

Running a Powershell script, restarting and then continue to run

I'm just starting out with the very basics of Powershell scripting and am looking at creating a script to one set of instructions then restart and continue running the rest of the script. The first part of the script makes changes to the registry,…
user3786382
  • 75
  • 1
  • 2
  • 7
4
votes
1 answer

Stop, interrupt, suspend and resume a java thread

i started to read about how to stop, interrupt, suspend and resume safely a java thread, i found on oracle documentation the following solutions : 1- How to stop a thread safely : private volatile Thread blinker; public void stop() { blinker =…
Naruto Biju Mode
  • 2,011
  • 3
  • 15
  • 28
4
votes
1 answer

Detect if an app is started/resumed from 'outside' the app

I'm currently concepting a feature for an app, where I'd like a general method/approach to detect if the app itself was started or resumed from 'outside' the app. 'Outside', in this case, means: app was started/resumed by the launcher icon app was…
darksaga
  • 2,166
  • 2
  • 18
  • 21