jax wrote:
> I have a superclass called Game.  I have two subclasses of this class
> Game1 and Game2 .
> 
> Inside the superclass "Game" there is a Skip button.  This button is
> in both Game1 and Game2 as they both use this button.  Inside Game I
> have initialized it using
> 
> mSkipButton = (Button)findViewById(R.id.skip_button);
> 
> Both Game1 and Game2 have a View with an Id of @+id/skip_button
> 
> For some reason the Skip button works in Game1 but not Game2.  Can two
> different Activities share the same ID?

Yes, if they are in the same application.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Beginning Android_ from Apress Now 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

Reply via email to