onresume

Android - WebView dies on resume

I have Activity with some data displayed in WebView that I load with WebView#loadDataWithBaseURL Then I have/click menu option that fires android.content.Intent.ACTION_SEND Choose email from the chooser Google email comes up (as expected) Discard email and hit back button Action with WebView tries to resume Bang - I get NullPonterExcep...

android :activity

hi, i have two activities 1) downloading something on oncreate function with help of asyn task ,and had one button. 2) secons activity display on click of button. now when i go back to previous ie first activity , then downloading starts again, i want to get the previous filled data view ,instead of startg the previous process again .. ...

Android back button does not restart activity?

My app intiates an activity. On the click of a button, the app opens up the browser with a webpage. When I hit the back button, it comes back to my initial activity screen, but does not resume or restart the activity. When I put all the layout code and activity code in onResume instead of onCreate, the activity gets restarted. My que...

Setting spinners onResume doesn't work

Hello! I want to save text from 2 edittexts(et1,et2) and selection from 3 spinners(spinnerm,spinner and spinner2) onPause and setting them back onResume. Text from edittexts is saved correctly, only spinner selection don't work as desired. My code: public void onResume(){ super.onResume(); Log.d("REZUM","notr smo"); Sh...

onActivityResult no longer being called after onDestroy

Hi, onActivityResult is giving me major headaches. My little game has a title / menu screen. Upon clicking "new game" an Activity is launched which creates a SurfaceView for my game world. When playing, the player can enter buildings in the game world. Upon entering a building I launch the activity for that particular building from m...

SeekBar disappears when pressed back button in Android?

Hi, I am using seekbar in my application. I am setting up the seekbars progress value in onResume. But if I do so then seekbar is visible only once. If i go to other activity and then press back button then seekbar doesnt show up. Can some one help me out in this? I have read somewhere that seekbar works if its in oncreate and if its...

Android - Simple View Refresh

Hi there, I don't think my future lies in Android development, as I am consistently failing at the simplest things... I've got a button with the label "Game Slot 1". When the user clicks it, I succesfully take them through a couple of activities in which they create a new character. I save the game name in an SQLite database, and the...

How to handle Android activity lifecycle on wake up (alarm app)

I'm having a couple of problems with an alarm app I am developing. The first thing that I think is a bit weird is that when an alarm goes of and wakes the phone up. These things happend. oncreate onresume onpause onresume Why are they run in that order? The last two should not be called? And this is what's causes me big trouble, b...

How to restore last values of listview and other views after coming app from foreground ?

When i click home button and then come back to to my application it doesn't show the last values on the listview or any other view it just look same with when i started the application.I believe it is can be done with onResume and onPause but i couldn't find how . ...

How can I manually recreate a Contextmenu for a Child of a ListView on Resume?

Hi, I have a ListView with a ContextMenu. If the ContextMenu is open and the Orientation changes, I want to reopen the Contextmenu for the Child of the ListView, that was clicked on. I tried to do this in "OnResume", but at this point, the ListView seems to have no Children. Anybody knows an answer? Thanks in advance. ...