Android不显示开机向导和开机气泡问题

  ······

  public void showFirstRunWorkspaceCling() {

  // Enable the clings only if they have not been dismissed before

  if (isClingsEnabled() &&

  !mSharedPrefs.getBoolean(Cling.WORKSPACE_CLING_DISMISSED_KEY, false) &&//此处false改为true

  !skipCustomClingIfNoAccounts() ) {

  // If we're not using the default workspace layout, replace workspace cling

  // with a custom workspace cling (usually specified in an overlay)

  // For now, only do this on tablets

  if (mSharedPrefs.getInt(LauncherProvider.DEFAULT_WORKSPACE_RESOURCE_ID, 0) != 0 &&

  getResources().getBoolean(R.bool.config_useCustomClings)) {

  // Use a custom cling

  View cling = findViewById(R.id.workspace_cling);

  ViewGroup clingParent = (ViewGroup) cling.getParent();

  int clingIndex = clingParent.indexOfChild(cling);

  clingParent.removeViewAt(clingIndex);

  View customCling = mInflater.inflate(R.layout.custom_workspace_cling, clingParent, false);

  clingParent.addView(customCling, clingIndex);

  customCling.setId(R.id.workspace_cling);

  }

  initCling(R.id.workspace_cling, null, false, 0);

  } else {

  removeCling(R.id.workspace_cling);

  }

  }

  public void showFirstRunAllAppsCling(int[] position) {

  // Enable the clings only if they have not been dismissed before

  if (isClingsEnabled() &&

  !mSharedPrefs.getBoolean(Cling.ALLAPPS_CLING_DISMISSED_KEY, false)) {//此处false改为true

  initCling(R.id.all_apps_cling, position, true, 0);

  } else {

  removeCling(R.id.all_apps_cling);

  }

  }

  public Cling showFirstRunFoldersCling() {

  // Enable the clings only if they have not been dismissed before

  if (isClingsEnabled() &&

  !mSharedPrefs.getBoolean(Cling.FOLDER_CLING_DISMISSED_KEY, false)) {//此处false改为true

  return initCling(R.id.folder_cling, null, true, 0);

  } else {

  removeCling(R.id.folder_cling);

  return null;

  }

  }

  ······