Hope right place to post coding question?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Hope right place to post coding question?

Postby gasher1985 » Thu Mar 10, 2011 9:00 am

Can i run code before calling super.oncreate() with out any problems? I want to launch a new activity to do some other 1 time work before i start service and stuff.
Code: Select all
public void onCreate(Bundle savedInstanceState) {
// Run code
        super.onCreate(savedInstanceState);
        setContentView(R.layout.agecheck);
       
    }
gasher1985
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 10, 2011 8:57 am

Top

Re: Hope right place to post coding question?

Postby ismail12 » Thu Mar 10, 2011 10:35 am

Hello,

after setContentView to ser the super.onCreated function.beacause after intialize only calling the main function.
ismail12
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 10, 2011 10:24 am

Re: Hope right place to post coding question?

Postby gasher1985 » Thu Mar 10, 2011 8:48 pm

sorry u lost me
gasher1985
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 10, 2011 8:57 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests