inheritance - Using Child Class In Android -


Sorry, I'm a newbie for Java and Android ...

I got an app, In which there is a major main activity, I want to divide it into some child classes so that it can be easier to read, edit, and so on.

From my main class (think) I am immediate, and calling the child from within the innusum:

  Setupbutton SetupBatonsAbact = New SetupButton (); SetupButtonsObject.buildthem ();   

And in the child class I do: SetupButtons main extension {void buildthem ()} {// Setup increases a load of things in buttons Is}}

The code that I am using in buildthem () works fine when used in the main category, but the nullifier is exempt when used in the child class .

Do I have to give a key reference to the child or some things?

Many thanks tom

activity class isn developer Should be instantly intermediated by, leave this work to Android if you want to split it, why do you extend your main activity? You need to split your app into rational parts because Nain said.

Comments