oncreate
Can I startService from Application#onCreate()?
I want to start a service when my Application is initialized from whatever component. public class MyApplication extends Application {[详细]
2023-03-30 16:55 分类:问答mkdirs seems to not work on sdcard in onCreate of an Activity
I am using a method to create a directory structure using mkdirs in onCreate of an activity. Eventhough it returns true and all indiactions are that it should work, still the directories are not creat[详细]
2023-03-30 08:34 分类:问答android activity only happens once but i need it to repeat
so my app has two tabs tab 1 is a login page then tab 2 is a user details the user needs to loginfrom tab 1 then only details would load from tab 2 so if the user didn\'t login and goes to tab 2,[详细]
2023-03-23 12:10 分类:问答How to dynamically create an AnimationDrawable from a tiled image
In the game I am currently programming, I have a tiled image with different animation frames in a 4x3 matrix. I would like to create an AnimationDrawable consisting of each of these frames in sequence[详细]
2023-03-22 21:01 分类:问答Difference between onCreate() and onStart()? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Android Activity Life Cycle - difference between onPause() and OnStop()[详细]
2023-03-22 20:17 分类:问答How to call onCreate method from other class?
I w开发者_运维百科ant to call onCreate(Bundle cicici); from other class then i am getting \"NullPointerException\", so please guide me how can i call the onCreate() from another class.There is only on[详细]
2023-03-22 17:47 分类:问答Android - Tell if parent activity has been destroyed
So, I have written an app that has a Main activity (A), and various other sub-activities that all do something, report the work back to main, and finish.[详细]
2023-03-14 10:08 分类:问答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 a black screen (until the ap开发者_运维百科p gets its footing). Looking at other apps they have a co[详细]
2023-03-13 20:13 分类:问答How can I fix this bug that is causing my app to crash on other's phones, if it isn't crashing on mine, and I have no way of seeing what's going on?
In order to get my feet wet with Android development, I thought I\'d hire a guy to lay the foundation of a simple app for me, then I would try and take it from there. So far it\'s worked really well.[详细]
2023-03-10 13:57 分类:问答Cant create Camera preview in onCreate?
I\'m having some issues with the preview of the camera on my Android. Right now i have a button you need to press before you get any preview of the camera.[详细]
2023-03-10 05:06 分类:问答