@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.live_wallpaper_base);

    Fragment fragmentView = getFragmentManager().findFragmentById(R.id.live_wallpaper_fragment);
    if (fragmentView == null) {
      /* When the screen is XLarge, the fragment is not included in the layout, so show it
       * as a dialog
       */
      /*mtk40478 modify this for ALPS00425492, support rotation change case*/
      if (savedInstanceState == null) {
        DialogFragment fragment = WallpaperDialog.newInstance();
        fragment.show(getFragmentManager(), "dialog");
      }
    }
  }
 public static WallpaperDialog newInstance() {
   WallpaperDialog dialog = new WallpaperDialog();
   dialog.setCancelable(true);
   return dialog;
 }