In the scope of an inner class, use OuterClass.this to refer to the Activity. So, if your activity class is named MainActivity, call MainActivity.this.startActivityForResult(intent).
The other option is to define a method in the activity that does this work and call the Activity's method from the onClickListener -- 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

