1) Create a new activity for your second "scene"...
2) Add an OnClickListener to your button
3) When button is clicked, call startActivity() with an intent for
your second activity.

Hope that's what you were asking


On Aug 2, 2:05 pm, coy <[email protected]> wrote:
> hi.
> I'm beginning to study Android and have a doubt.
>  How do I open a new layout and code (xml and java) by clicking a
> button on the main scene?
> A simple help would be greatly appreciated (:

-- 
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