onStart refers to one of the lifecycle methods for several components on the Android platform.
Questions tagged [onstart]
117 questions
0
votes
0 answers
Android layout not loaded on onStart()
While showing a background I want to run some operations (without using threads).
In my activity on onCreate() I have setContentView(R.layout.splash);
When the app fires onStart(), the layout is not loaded yet. Why?
UPDATE: LogCat gives me…

Massimo Variolo
- 4,669
- 6
- 38
- 64
0
votes
3 answers
Call a method when timer counts down to 0
I'm writing a C# service and its main function is to pull photos from a database and save them to a directory twice a day. This operation takes about 15 minutes typically (there are a lot of photos). If I put the logic to run the program in…

grantmcconnaughey
- 10,130
- 10
- 37
- 66
0
votes
1 answer
Where the logs from Global.java go?
I'm testing the last stable version of play framework.
I created the Global.java class and overridden the method onStart where I put the Logger.info("test...");
And I can't see the this log anywhere (no server console, no…

Yev
- 337
- 4
- 19
0
votes
3 answers
Error on Opening ASyncTask in onStart
In my application, on every start of the application I want to execute a php script and load the application accordingly. Hence I created a static boolean varialble
boolean firstRun = false;
In my onStart, I add teh following code :
// If images…

Tvd
- 4,463
- 18
- 79
- 125
0
votes
0 answers
How to call a function repeatedly at fixed intervals using Android Service?
Here's my code i want to call that log again and again, after fixed interval but some how there is some problem.
@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
…

user986508
- 189
- 2
- 5
- 14
0
votes
0 answers
how to cancel fancybox from an AJAX callback within onStart
I am loading a login form within a fancybox. If the user has the site open in two browser tabs, and logs in in the first tab, and then clicks the login link in the second tab, I want to avoid opening the fancybox in the second tab since the page…

arnoldbird
- 886
- 1
- 13
- 30
0
votes
1 answer
Bluetooth discoverable status on application start
How can we have the bluetooth discoverable status on application start
I have an Image view for showing the status but its not showing the appropriate Image on start of applicaton
In oncreate() I have the following code
mBtAdapter =…

Randroid
- 3,688
- 5
- 30
- 55
-1
votes
1 answer
How to convert Mootools code to jQuery code for slide down, then scroll to #current?
I was wondering there type of API like onStart and onComplete from Mootools, it makes me curious where i get those APIs for jQuery... there an example script:
var slidez = null;
function closeOpen(ref) {
//return
if (ref != slidez &&…

Ivan
- 1,221
- 2
- 21
- 43
-1
votes
1 answer
Perform an Action when the app comes to foreground
I am developing an app which has to perform some background work. For that reason, I am using a Service. Now what I want to achieve suppose the user start the background work and while the work is loading then the user has an option to either…

Rahulrr2602
- 701
- 1
- 13
- 34
-1
votes
2 answers
Can't get SharedPref value on start of the app. Android Studio
I'm getting a very mysterious bug in my app.
On Android Studio, I'm checking for the value in SharedPreferences on the very first Activity (Launcher Activity), and if I get a value the app should go into background otherwise the Activity will be…

Vivek Rathaur
- 53
- 2
- 10
-2
votes
2 answers
when an activity starts but when do we use onStart()
I know we call onCreate() when an activity starts but when do we use onStart()?

Divyansh
- 11
- 5
-5
votes
3 answers
where is best place to get the resources in the activity
i want to know where is the best place i should get the resources of the views in android..
for example should i get the resource in onCreate() or onStart();

BDeveloper
- 1,175
- 6
- 24
- 44