Top "Oncreate" questions

onCreate refers to one of the lifecycle methods for several components on the Android platform.

requestFeature() must be called before adding content error on super.onCreate

I have an abstract class extending ActionBarActivity. In the onCreate, I have: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(…

android oncreate
Android: Stop Recreating the activity on orientation change

I have a listview with two buttons in my main.xml layout. On click of one button i'am creating a …

android android-activity oncreate onconfigurationchanged
Image on start up / loading

I ma developing an app, which at the moment when it is loading from the onCreate point, I just have …

android image loading oncreate
get activityInfo metaData in onCreate method

I need to retrieve a value from the AndroidManifest.xml file, stored as a meta data: <meta-data android:value="3" …

android metadata android-manifest oncreate
Android - Activity onCreate and Fragment onCreate

I'm still new to Android programming, so this question is rather basic. I see lots of code samples on the …

android android-fragments oncreate onstart
Which method is run when Home button pressed?

I have a Home replacement Activity from within which you can launch a number of apps. When you tap the …

android oncreate onresume android-homebutton
Why is my onCreateView method being called twice?

While debugging another issue, I realized that the onCreateView method of one of my activities was being called twice. I'm …

android android-activity oncreate
How can I know that OnResume comes after onCreate?

I have few activities and from one activity I open another and that go back to the first one... The …

android lifecycle oncreate onresume
After the rotate, onCreate() Fragment is called before onCreate() FragmentActivity

I'm using FragmentActivity and Fragments. When the application starts: FragmentActivity onCreate() <------ FragmentActivity onStart() FragmentActivity onResume() Fragment onAttach() Fragment …

android android-fragments oncreate android-fragmentactivity android-support-library
Getting intent extra and the onCreate method?

I have classes A, B and C. Class A sends intent to B, B runs C, C returns to B.....…

android android-intent oncreate