oncreate Questions

2

Solved

I would like to finish an activity from inside the onCreate method. When I call finish(), onDestroy() is not immediately called, the code keeps flowing past finish(). onDestroy() isn't called until...
Stonyhearted asked 26/11, 2011 at 23:58

4

Solved

Is onCreate() called when a class object that extends Activity is created? Or is it only called when an activity is started, for example over startActivity(...)?
Nice asked 19/9, 2011 at 18:11

2

Solved

I have two tables, users and tokens. Each user have a activated field and each token have the {id, token, user_id, created} fields. The way the app should work is: On the creation, the app will - ...
Mediation asked 2/9, 2011 at 1:19

2

Solved

I want to start a service when my Application is initialized from whatever component. public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); star...
Noise asked 26/8, 2011 at 0:40

1

Solved

I have an application and there are certain conditions when I want my activity to be recreated or the onCreate function is needed to be called so that different functions can be performed again. Ju...
Sidell asked 22/8, 2011 at 15:45

1

Solved

My Android app need the user to create an account to be able to use the app. The account info is stored in SQLite database. When the application starts I check if the user has an account, if not I ...
Haplography asked 3/8, 2011 at 7:55

2

Solved

Possible Duplicate: Android Activity Life Cycle - difference between onPause() and OnStop() I was wondering - what is the difference between onCreate() and onStart() methods? I think...
Rainout asked 25/7, 2011 at 5:10

3

Solved

I have some error reports on my Android app, it's a Nullpointerexception in onCreate() in an Activity. The code that fails is getIntent().getExtras().getStringExtra("name"). (Nullpointerexception)...

5

Solved

Delphi help says either override a form's constructor, or use the OnCreate event. But don't do both. What's the reason for this? The only thing I can see, is if inherited is left out of the constru...
Justinajustine asked 21/4, 2011 at 9:41

3

Solved

I have procedure TMainForm.FormCreate(Sender: TObject); begin DragAcceptFiles (Handle, True ) ; end ; but the form does not accept dragged files - no drop cursor, no firing of WM_DROPFILES mes...
Infectious asked 13/10, 2010 at 21:0

1

Solved

I have been looking it up and I just cant seem to wrap myself around the onCreate and Bundles. I understand that the onCreate is called when the program starts but its how the Bundles get passed ar...
Hoiden asked 22/5, 2010 at 7:56

3

I've got a question that is annoying me. With Android, I've got an application that seems to be calling onCreate every time a new instance of an activity is created, because this activity is the s...
Kaja asked 27/4, 2009 at 10:6

© 2022 - 2024 — McMap. All rights reserved.