On Sun, Oct 10, 2010 at 6:45 PM, Derek Winstead
<[email protected]> wrote:
> I am still new to Android and Java in itself. How would I create a
> subclass of a class? Do I make a class the extends the DatePicker or
> does it implement the DatePicker? Or is it done totally different.
You would do something like this:
public class DerekDatePicker extends DatePicker {
// add constructors
// override other methods as needed to accomplish your aims
}
If you're new to Java, I really recommend spending some time learning
Java outside of Android. Android is somewhat funky and, IMHO, would
make learning Java a bit difficult, since it will not line up with
many traditional Java books.
FWIW, here's a blog post where I list the key topics in Java I think
you need to know to be reasonably effective with Android:
http://commonsware.com/blog/2010/08/02/java-good-parts-version.html
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_Android Programming Tutorials_ Version 3.0.1 Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en