[android-beginners] start another activity through onclick event

2009-12-15 Thread Lynn Ooi
hi, I had 2 activity (called androidGallery and HelloAndroid). i try to call helloAndroid from the androidGallery when user click on the button. basically, androidGallery is just to get the onclick event. The helloAndroid activity will set the text of a textview. however, i cant get it working.

Re: [android-beginners] start another activity through onclick event

2009-12-15 Thread Yousuf Syed
Do this Intent myIntent = new Intent(androidGallery.this, helloAndroid.class); startActivity(myIntent); On Mon, Dec 14, 2009 at 3:56 AM, Lynn Ooi lynnooi@gmail.com wrote: hi, I had 2 activity (called androidGallery and HelloAndroid). i try to call helloAndroid from the androidGallery

Re: [android-beginners] start another activity through onclick event

2009-12-15 Thread Justin Anderson
* Do this* * Intent myIntent = new Intent(androidGallery.this, helloAndroid.class); * * startActivity(myIntent);* I may be wrong but I think that your suggestion and the method already being used are logically equivalent. If just using startActivity without qualifiers doesn't work: Force close