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
0
votes
1 answer

Resuming UIView Animations on App Re-Entry?

I have 2 UIImageView's in the main view controller of my app. They are always animating via UIView animations. What I want to achieve is when the user clicks the home button, pause the UIView animations, and when the user comes back to the app,…
SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191
0
votes
1 answer

Resume game loop in cocos2d

I have a game with animation. In game scene, I use the method below to pause my game (it works perfectly, because the game is paused when the users taps on any point of the iOS device): -(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent…
mr.M
  • 851
  • 6
  • 23
  • 41
0
votes
1 answer

Android: Thread doesn't run :/

I have been following a tutorial on youtube for surfaceview with a thread in it. i have copied exactly what the code shows in the tutorial, but when i run it it crashes when it should work.. here is surface class in my code: it says…
0
votes
0 answers

iOS - Relevance of the clock appearing when resuming?

I'm working on a long-standing, fairly-complex iOS Cocoa app, and I'm trying to fix performance when resuming from the inactive (say, locking the device). The problem appears on all versions of the iPhone (we support back to the 3G). The steps…
0
votes
1 answer

paused/stopped activity resume by thread

Imagine the follow situation: MainActivity starts a thread to receive bluetooth data. If the user press back button the follow sequence happens: onPause() -> onStop() -> onDestroy(). The onDestroy interrupts the thead created by activity and the…
0
votes
1 answer

Pause and resume loop in C

I am writing a game code in C which involves display of numbers with a time gap entered by the user. srand ( time(NULL) ); //this avoids generating the same random number everytime start: mySleep(userdelay); printf("\n\n\a\t%d",rand()%90);…
user1445848
  • 11
  • 1
  • 5
0
votes
1 answer

my application not resume when reopen?

My application is not resuming to previous state when it is reopen Although its working well when a call is recieved or other application is open and then closed it comes in front but when HOME_KEY is pressed it start from first activity. It not…
Trikaldarshiii
  • 11,174
  • 16
  • 67
  • 95
0
votes
2 answers

Android StopWatch - How to resume my time

I'm making stopwatch application for Android. I want when stop is clicked the time to stop, and when the Start is clicked again the time to be resumed. I'm using http://www.goldb.org/stopwatchjava.html class. Currently the time is resumed on click…
dgjorg
  • 85
  • 8
0
votes
1 answer

How to make pause/resume event in android andengine game?

I made a game using Andengine. How can I add a pause/resume button to it? I researched this but I couldn't understand exactly. I can stop the game with the code below, but then I can't resume it again. pause = new Sprite(400.0f, 200.0f,…
Kadir
  • 411
  • 1
  • 6
  • 19
0
votes
3 answers

Prevent on resume from firing when returning from an activity (Hard to explain)

I currently have a tapping game which utilises the on pause, stop and onresume methods when the user presses the home button, the timer is 'cancelled' and the time left saved as long and then in the onresume a new timer is created with the time…
Broak
  • 4,161
  • 4
  • 31
  • 54
0
votes
2 answers

Phonegap Cordova fires both: resume, deviceready

why Phonegap on Android is firing both events (deviceready,resume) when I call navigator.app.loadUrl() ???? Im using cordova-1.5.0 on Android. The page being called by loadUrl() has this javaScript: