Questions tagged [onresume]

onResume is an Activity life-cycle event generated by the Android OS when an Activity becomes the top-most one in the stack.

onResume is an Activity life-cycle event generated by the Android OS when an Activity becomes the top-most one in the stack.

More can be read about this at the Android Developer Site.

712 questions
0
votes
3 answers

Android onResume from Application

My client wants their app to always show a "WARNING" screen when the application starts or when it awakens from sleep. I've tried creating an onResume() event in my master activity (which every other activity inherits from), but this causes an…
Don Quixote
  • 235
  • 1
  • 5
  • 15
0
votes
1 answer

Sample Evernote Android Activity NullPointerException

When I run example app from evernote - it works. If I copy activity(and all libs) to my app, at start activity in my app, it gives force close in onResume method with NullPointerException. public class HelloEDAM extends Activity { …
0
votes
1 answer

Can I resume from the same place where my application left calculating while going on pause?

My application is processing data (which involves lot's of calculation, creation of arrays, clearing of those arrays) is it possible to resume from the place it left the calculation when the application resumes ? While the calculation is going on I…
Sumit
  • 103
  • 1
  • 10
0
votes
2 answers

Save state for onPause and onResume

I'm even not sure I've written the title correctly, because this is the first time I feel I have to cope with this methods. In onCreate(), I make a notification with default sound printing a string. Then, I check to see if I get another String. If…
azizbekian
  • 60,783
  • 13
  • 169
  • 249
0
votes
2 answers

When to register for location updates?

I am writing an Android application that requires the user's current location. I register for location updates both from the network, and from GPS using the following code (locationManager is already defined): // Register the listener with the…
DanielGibbs
  • 9,910
  • 11
  • 76
  • 121
0
votes
1 answer

My onResume() throws a NullPointerException

I am taking accelerometer readings to catch users shaking the phone. When a user shakes the phone, I want to design it to do something. It works fine, but I put in an onPause() method because I don't need the accelerometer detecting any shaking…
FeralShadow
  • 259
  • 1
  • 4
  • 14
0
votes
1 answer

AndEngine multiple activity error when switching

Im using a splash screen for my andengine game the game crashes after the splash screen i have posted the error 05-18 19:49:19.939: E/AndroidRuntime(3425): FATAL EXCEPTION: main 05-18 19:49:19.939: E/AndroidRuntime(3425):…
0
votes
2 answers

Android onResume Show Previous state of Activity

In my project I've several controls in my activity listView checkboxes and textboxes in several tabs now what i've seen when i press home key or recieve a call my activity put into pause and the control get reset (like listview will have to rebind…
Trikaldarshiii
  • 11,174
  • 16
  • 67
  • 95
0
votes
2 answers

Android onResume Blank Screen

In my Android App, everything works perfect except when I hit the home button and wait 10-15 minutes and come back to the app, the screen is blank. I can still access the menu items, but the screen is just black. If I am on the activity as…
Jesse
  • 2,674
  • 6
  • 30
  • 47
0
votes
1 answer

when tab is changed, which method is called besides onTabChange

I have a tabhost and several tabs inside. each tab is an activity. When I change tab, is there any method for tabs to be called like onCreate(), onRestart(), onResume(). by the wasy I dont want to set ontabchangedlistener to tabhost. PS: version…
guness
  • 6,336
  • 7
  • 59
  • 88
-1
votes
1 answer

How can I know what i should reload OnResume event in xamarin.forms

I'm working with Xamarin.Forms and I need some help. Regarding the OnResume event, how can I know what I need to reload? I ask this because sometimes everything resumes OK but other times the configuration files don't reload correctly. Does any…
Uraitz
  • 476
  • 4
  • 12
-1
votes
4 answers

Stop animation effects after resuming an activity

I have added some animations on a view. After launching an activity, all the animations are starting to animate. After stopping the animation effect I go to another activity that is in the same app. When I come back again to the activity that…
E J Chathuranga
  • 927
  • 12
  • 27
-1
votes
1 answer

show pincode screen on app resume from memory [Navigator operation requested with a context that does not include a Navigator.]

I want to show PinCode on app resume for all loggedIn Users so i checked that there is WidgetsBindingObserver and used it like this : class ClientApp extends StatefulWidget { @override ClientAppState createState() => ClientAppState(); } class…
Saifallak
  • 1,234
  • 2
  • 13
  • 28
-1
votes
2 answers

How to handle ToggleButton state in OnPause and OnResume state

I am facing problem with toggle button state on onResume() and onPause() state. Activity - A (first user toggle ON the button) then go back to Activity - B, then it will comeback to Activity - A then I want toggle Button is ON not OFF, how to handle…
-1
votes
1 answer

How to stop android webview activity from reloading when another activity is closed

I have an android webview app, with more than 3 different activity my problem is when i lunch new activity and close it using finish(), the main webview activity will refresh again. Is it possible to prevent it from refreshing when i don't want it…
Peter
  • 1,860
  • 2
  • 18
  • 47