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

My android app doesn't call onResume

I'm developing a game in android and i have an extrange bug. When I execute the app first time all runs ok, but when I press the home button an then I return to app the screen stills white, using Log I can see that the onResume() isn't called.…
Dureo
  • 1
  • 1
0
votes
1 answer

Java: Android: MediaPlayer sometimes returning null onResume

I'm trying to get music to play on my app but I've hit a problem which I can't figure out. When I first load the program, it works fine and the music loads and plays. If I let the phone idle and then come back to it, the app works again. But the…
Bob
  • 55
  • 1
  • 9
0
votes
1 answer

How can watch my position when I close my App with Phonegap and jquerymobile

I am using phonegap, jquerymobile the googlemap API to get my current position and to watch my position. For this, when I lunch my map page, my position is shown with a marker and the marker move when I move. Even if it works excpeted when I close…
pierrot10
  • 129
  • 4
  • 13
0
votes
3 answers

onResume causing problems on start up

I have an activity that allows the user to start a second activity. The second activity has a list of items which I add to an array list. When I return to the previous activity I want to display the size of the array list. However I am having a…
Javacadabra
  • 5,578
  • 15
  • 84
  • 152
0
votes
1 answer

About launcher intent

I'm trying to make a certain function to start only when a user, Opens the app for the first time, Goes back to an app from home. But not start if the user switches between activities within the app. I have looked through this topic,and the best…
Kit Ng
  • 993
  • 4
  • 12
  • 24
0
votes
1 answer

Reactivate an activity

i do have a little problem. I have a lot of different activities and from all these activities i can belong to one activity (I call it ActivityC). So if i return from ActivityC to the former Activity (ActivityB) with the Return Button, i want that…
Charles1
  • 57
  • 8
0
votes
0 answers

android auto boot an application and followed by a splash screen

I'm new to android, bear with me if my question is stupid. I have application which has a 5 seconds splash screen at the beginning. My application is auto booted when the device's powered on. which means, after I power on the device, the timer for…
checai
  • 836
  • 4
  • 11
  • 17
0
votes
0 answers

How to Handle onActivityResult function in TabLayout in Android

I have Tab Activity with 5 tab namely camera,gallery,listing ,history and logout in camera tab I open camera and take picture and save in gallery and at the same time I open form with this picked image. My problem is when I don't fill form and move…
0
votes
1 answer

Android: onResume() not called after pressing home button

I have an activity that makes a call to a remote server when it's started. The thing is, that when the app is on the background, and the server creates new content, when restoring my app, this new content is not seen unless the app is killed and…
noloman
  • 11,411
  • 20
  • 82
  • 129
0
votes
0 answers

OnClick button event triggered during loading after onResume

I got a weird problem with one of my Android app. I will explain myself : I have a SplashScreen (sort of) which is an activity. Basically, it stays 1 second and after this time a handler is called. This handler launches my HomeActivity, which…
Olivier.G
  • 143
  • 1
  • 2
  • 12
0
votes
1 answer

Twitter Auth Browser not go back to my android application

I'm trying to figure out Twitter OAuth for my Android application. My problem is when the Twitter OAuth browser opens, I click the Authorize App button but it directs to my callback URL, pauses there and doesn't go back to my app, subsequently not…
vie
  • 11
  • 3
0
votes
1 answer

When onResume is called app throws ArrayIndexOutOfBouds

When I click home button onPause method is called but when I call application in front onResume is called and than it crashes. There is code when index is out of bouds: while (isRunning) { if (!ourHolder.getSurface().isValid()) …
Blake Gibbs
  • 485
  • 1
  • 9
  • 25
0
votes
2 answers

FragmentPagerAdapter can't restore listfragment propery

I am developing an Android app made up by 3 fragments; one of them will be a ListFragment, and its content will depend by what happens on the other Fragments. I use a ViewPager object to make the user swype between fragments; this is its adapter…
0
votes
3 answers

Can not see the onResume method in an activity

I have an activity where I create tabs and each tab corresponds to an activity The Activity where I create the tabs: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // ActionBar…
mkounal
  • 773
  • 2
  • 7
  • 23
0
votes
2 answers

how to find contentView in onResume

In my app I have two views, a main and a secondary. However, if my app is paused while in the second view it crashes when the on resume code runs. I discovered that this was because in my on resume has a line where it sets a value to a textview. I…
jcw
  • 5,132
  • 7
  • 45
  • 54