Thanks Jeffrey... This is a newbie question.. the view you referenced in the example is the view of the current activity. I don't follow the PageToBeOpened.class. I am not sure of the proper syntax for this parameter.
On Dec 4, 4:32 pm, Jeffrey <jeffisagen...@gmail.com> wrote: > Here is code that you can pretty much copy/paste to get working. > > Button Whatever = (Button) findViewById(R.id.ButtonWhatever); > Whatever.setOnClickListener(new View.OnClickListener() { > public void onClick(View view) { > > Intent myIntent = new > Intent(view.getContext(), > PageToBeOpened.class); > startActivityForResult(myIntent, 0); > } > }); > > On Dec 4, 12:44 pm, Romain Guy <romain...@android.com> wrote: > > > Hi, > > > To start another activity you should look at the method called > > startActivity(). This can be used to start an activity based on an > > Intent or by specifying a package name and a class name, which is > > exactly what you want in your case. > > > On Thu, Dec 3, 2009 at 4:49 PM, Chris <chris.sander...@gmail.com> wrote: > > > Hi All, > > > > I am getting my feet wet developing software for the Android. My test > > > app will have multiple screens (each having their own layout file). > > > The main screen will direct the user to view the other screens based > > > on user input. I kinda see this as layers of cake. Bottom layer being > > > main; then you add and remove layers as the user makes UI inputs. The > > > crazy trouble is how to view a second layer. I have created a second > > > class which has its own onCreate method, which has its on > > > setContentView(R.layout.secondlayer). This class extends Activity much > > > like my primary class does. I have a click event on a button within > > > the main layout. This button will instantiate the new second layer > > > class which I have done. And that is where my story ends...I don't > > > know what to do from this point. This is surely a newbie question... > > > If someone has an example that would be extremely helpful...teach me > > > to fish and I will be on my way... > > > > Thanks in Advance, > > > > Chris > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > Romain Guy > > Android framework engineer > > romain...@android.com > > > Note: please don't send private questions to me, as I don't have time > > to provide private support. All such questions should be posted on > > public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en