> I'm a french developer who's trying to set up an application with
> android for a project at school.
> I never developed in Java before, but I got severals knowledges about
> Object Oriented programation.

I strongly recommend you teach yourself Java before attempting to teach
yourself Android programming.

http://fr.wikibooks.org/wiki/Java

> But today I'm stuck which, I think, will be simple to resolve for many
> of you. In fact, I'm trying to create an activity with a new class,
> but my problem is that I don't know how to get all my main class's
> datas.
> I can do that with :
>
> public class new_activity extends main_activity
> {
>
> ...
>
> }
>
> But with that, the class is no more considered as an activity class,
> am I wrong ?

Subclasses can access data from their parent classes, except for what is
declared private. This should be covered in an introductory Java course. I
don't speak much French, but I think the Wikibook I linked to above should
cover inheritance.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!


--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to