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
-1
votes
2 answers

unable to resume activity only on nexus 7 4.4.2

My app runs perfectly on all devices (avd 2.3.3, avd 4.4.2, avd 4.1.2 ecc..) and real devices such as Android 4.1 Android 2.3.3 - 2.3.7 Android 4.0.3 - 4.0.4 Android 4.2 Android 4.3 Android 4.4 Android 2.2 Android 3.2 Android 2.1 Android 3.1 BUT IT…
TecnoHelp83
  • 59
  • 1
  • 8
-1
votes
2 answers

onResume() method and ListPreferences Android

PreferenceActivity: public class UsersettingsActivity extends PreferenceActivity { public EditTextPreference nomePreferences; public static float currValue; public static ListPreference lista; public static CharSequence…
Atlas91
  • 5,754
  • 17
  • 69
  • 141
-1
votes
1 answer

AutoCompleteTextView in android mapping

I have two AutoCompleteTextView in which one is mapped with another like if I select value in first AutoCompleteTextView1 then according to the value it shows the second AutoCompleteTextView2 values which is mapped in database. It works fine but…
Pooja
  • 241
  • 2
  • 3
  • 11
-1
votes
1 answer

Open-Source Software vs Licensed Sofware on a Resume

My question is concerned with the idea of putting on your resume that you know a official language but have mostly experimented with its open-source counterpart (Example: putting down you know MATLAB but you know Octave which is almost similar to…
jonathan1987
  • 251
  • 1
  • 6
  • 17
-1
votes
1 answer

Which delegate function is called within a class on tapping the home-button

I have a pop-up which has to be hidden when the user moves away from the class. On tapping on the home button, the doesn't happen. - (void)applicationDidBecomeActive:(UIApplication *)application - (void)applicationDidEnterBackground:(UIApplication…
Ambili B Menon
  • 1,249
  • 2
  • 14
  • 26
-1
votes
2 answers

Check if my app is launched from background or not in android?

Suppose if I am using my android app and I click on home button in say xyz activity. Now at this point the app is running in background, now if the app is launched again the xyz activity will be brought to front that is fine but I want to check if…
Syn3sthete
  • 4,151
  • 3
  • 23
  • 41
-1
votes
3 answers

Android activity.onPause() then activity.onResume() restarts the app

I can successfully call activity.onPause() to pause the application. But when i call activity.onResume() the application restarts. Is there a way to avoid this ? Edited I actually want to pause my application using a pause button
Dnu_12
  • 45
  • 1
  • 10
-2
votes
1 answer

List View should not load onBackPressed

I have Three Activities Main Activity , Order Activity , Order Details Activity. Order Activity has a list view . On click of list View Order Details activity is opened but on back pressed from Order Details Activity the list view is loading again…
-2
votes
2 answers

The onResume method causes Activity to crash

I am overriding onResume method to load previos state of my activity where it was ie spinner's last selected item etc. However the same code works fine for some activities but for some it causes crash as when i remove this onResume from them,…
-2
votes
3 answers

How onResume() working in android

Hi for me one doubt if I change any content or color of activity example, in activity1 I have one textview with data "apple" from shared preference. And I am clicking a button to start new activity2 there I am clicking one button to update the…
Sureshkumar S
  • 193
  • 1
  • 2
  • 13
-2
votes
1 answer

app crashing and giving run time error performing pause of activity that was not resumed

Getting this error when my phone goes idle mode and the activity is open and I try to use the app again. It crashes sometimes and sometimes it works I am calling few methods in onResume() method of the activity, such as, getting json from…
Saraz
  • 524
  • 7
  • 16
-2
votes
1 answer

context.getActivity() returns null in fragment after fragment is resumed

When fragment is running, context.getActivity() is not null but when it turns to onPause() method and resumed back then context.getActivity() method returns null. @Override public View onCreateView(LayoutInflater inflater, …
Muhammad
  • 1
  • 6
-2
votes
1 answer

Android lifecycle/multithreading

I am developing an App that uses NFC. When a new intent is discovered (NFC), the Activity goes to onStop state, then it executes onNewIntent code which executes a new Thread, in the middle of the Thread execution, the main Activity goes to onResume…
Jachu
  • 405
  • 5
  • 10
-2
votes
2 answers

killing an app with advanced app killer crashes the application in android

I have developed an android app. It works fine but when the user has advanced app killer in his mobile and kills the app with it then when you open it again the app would crash. This is because the app killer is deleting all the contents of global…
sundeep
  • 601
  • 1
  • 8
  • 21
-3
votes
1 answer

Android run time exeption on resuem

Good day ALL I am trying to create a program that shows toast message onResume however the app crashes before starting and I couldn't figure out how to fix it. the link provided as if my question is duplicated does not even help me to fix…
1 2 3
47
48