code: public void show(Activity activity){
          show((ViewGroup)activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT));
  	}
docs: Show this SnackBar. It will auto attach to the activity's root view.
  @param activity