Re: [android-developers] Whats first onCreate or the constructor

2010-08-12 Thread Dianne Hackborn
Simple answer: if you are implementing a component like Activity, Service, and ContentProvider, don't implement a constructor. (That is just use the default empty constructor). Whatever you think you want to do in the constructor... you very like don't, and should do in onCreate() instead. On W

Re: [android-developers] Whats first onCreate or the constructor

2010-08-12 Thread TreKing
On Wed, Aug 11, 2010 at 3:10 AM, Scott Herbert < scott.a.herb...@googlemail.com> wrote: > I'm new to Java (and be extension Android) > I highly recommend you go learn Java on it's own outside of Android. You're trying to run before you walk and you're going to be tripping and falling all over th

Re: [android-developers] Whats first onCreate or the constructor

2010-08-12 Thread Frank Weiss
I don't understand. What is the relationship between the Activity for which onCreate() is called and the object whose constructor is called? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] Whats first onCreate or the constructor

2010-08-12 Thread Scott Herbert
Firstly I hope this isn't too basic a question, I'm new to Java (and be extension Android) so please forgive me if it's obvious to everyone else, but I couldn't find the answer via Google. I have a simple app I'm writing primary because I and at least one of my friends want it but also to learn Ja