onStart refers to one of the lifecycle methods for several components on the Android platform.
Questions tagged [onstart]
117 questions
0
votes
2 answers
Is it possible to run an Android app without onStart()?
I am totally new to Android and I'm just learning about the Activity life cycle.
In all the apps that I have made so far to practice, I hadn't been using the onStart() method (mostly because I didn't know of it) and the apps worked perfectly fine.…

Fotis Emery
- 15
- 2
0
votes
4 answers
Why when the new Android project is started in the Android Studio, there is no OnStart() after OnCreate() in the autogenerated code?
Why when the new Android project is started in the Android Studio, there is no explicit call of OnStart() after OnCreate() in the autogenerated code, although all the tutorials say that OnCreate() is always followed by OnStart()?Also, I looked up in…

ufulol
- 13
- 1
- 3
0
votes
1 answer
Spinner Value is not preserved for 2nd spinner onStart
I have two spinners, the information on the 2nd spinner is based on the 1st spinner selection
EXAMPLE
SPINNER 1 PROTEIN DAIRY FRUITS
IF SPINNER 1 IS SET WITH PROTEIN then SPINNER 2 EGG CHICKEN
IF SPINNER 1 IS SET WITH FRUITS then SPINNER 2 APPLE…

Juancho92
- 15
- 6
0
votes
0 answers
Distinguish android onStart function in different cases(Rotate or create new activity)
I find three cases which will call Android activity onStart() function:
Create a new activity, onStart() will follow behind onCreate
Press home button bring activity background and then bring it forward, it will also call onStart(), and it will…

newszer
- 440
- 1
- 4
- 23
0
votes
1 answer
android args.getString gives null outside onStart
I'm passing a string between two fragments. It's working but for a reason i can't get the string outside onStart...
public class EventSelectFriendFragment extends Fragment {
final static String DATA_RECEIVE = "data_receive";
String…

Joris
- 119
- 9
0
votes
1 answer
How can I call a function on start and periodically on Playframework 2.5
I need to make a WS petition when I start play so I can log in a external service to obtain a token. I need that token for make future petitions. I know how to make WS petitions, I don't know where to place that code to execute on start. At this…

rcanovas
- 318
- 2
- 9
0
votes
0 answers
primefaces onstart invokes after file upload listner
This is the snippet of my xhtml page.

Nevindaree
- 1
- 1
0
votes
2 answers
MainActvity not getting updated when App is first launched
I am developing a MovieApp which loads movie posters in MainActivity Fragment using AsyncTask background thread. I am using gridview and BaseAdapter to display images. Following is the code.
MainActivityFragment.java :
package…

Viv
- 15
- 6
0
votes
2 answers
I'm Trying To add this on A onStart method
I'm trying to put this code in a onStart method. I tried several things but can't seem to find a way... if I put it on a onStart method the error is:
cannot return value from a method with a void result type
I did try changing it into a int, any…

Adrien Zier
- 687
- 1
- 7
- 28
0
votes
2 answers
TextView in PopUpwindow cause NullPointer Exception
got a problem with changing the text of a text view in a PopUp Window.
Simple Version of the code looks like this:
public class Activity extends Activity {
View popupView;
PopupWindow pw_info;
@Override
protected void onCreate(Bundle…

Ingo K.
- 79
- 11
0
votes
2 answers
Arduino to run code on start automatically
I'm pretty new to C++ and Arduino. I purchased a gadget called a Defusable Alarm Clock. I'm looking to modify the code so that when it's powered up it will automatically start the countdown. Right now, you have to manually push the red button (DET)…

user3258383
- 29
- 3
- 8
0
votes
0 answers
How resume facebook login profile data in android
I have my app when i Log with Facebook. Everything works in the first time when i log, but when for example i press the back button and next return in the app i have lose all facebook data(profile name, id,....) and i don't know how i recover these.…

mems
- 45
- 1
- 6
0
votes
1 answer
in onStart() i want to set new values
public class MainActivity extends ActionBarActivity {
Button b1;
TextView tv2;
Integer count ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

viraj wagh
- 1
- 6
0
votes
2 answers
Make an alert only appear when app is opened
Is there a way to make an alert only appear when the app is opened? I'm creating an alert in onStart() in my MainActivity and whenever I go back to that activity in the app, it shows the alert again which can be annoying to the user. Or is there a…

coder4lyf
- 927
- 1
- 17
- 36
0
votes
1 answer
Disable autoscanning finger on start.
Problem: The activity automatically scans for heart rate on load.
What i want: I want to start scanning for heart rate after a button is pressed.
Im still new to this, so can anyone help me? i would gladly appreciate it.
@Override
public void…

Alx Mnza
- 1
- 3