Three lines of boiler plate. Not sure if I'd bother refactoring that! But anyways...
You might have issues using the Activity subclass pattern becasue you can't do that with existing patterns. Here's another approach. In your home activity, or in a Global class, add a static method: public static void startHomeActivity(Activity fromActivity) { Intent i = new Intent(); i.setClass(fromActivity, Main_Form.class); fromActivity.startActivity(i); } In the other activiities, you then simply call Main_Form.startHomeActivity(this); -- 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