title: how to set cancellable false to an activity when it is opened as a Dialog?
body: <p>hi i have made a n activity in that i open an activity as a Dialog popup on another activity ,SO i g.ot the problem it is of my theme,</p>
  
  <pre><code> &lt;item `name="android:windowCloseOnTouchOutside"&gt;@bool/config_closeDialogWhenTouchOutside&lt;/item&gt;`
  </code></pre>
  
  <p>but i dont know what value should i change inside <code>"windowCloseOnTouchOutside"</code> so that i can do my activity dialog set cancellable false..?
  My code in theme is as below:</p>
  
  <pre><code> &lt;style name="Theme.Dialog"&gt;
          &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt;
          &lt;item name="android:windowTitleStyle"&gt;@android:style/DialogWindowTitle&lt;/item&gt;
          &lt;item name="android:windowBackground"&gt;@android:drawable/panel_background&lt;/item&gt;
          &lt;item name="android:windowIsFloating"&gt;true&lt;/item&gt;
          &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
          &lt;item name="android:windowAnimationStyle"&gt;@android:style/Animation.Dialog&lt;/item&gt;
          &lt;item name="android:windowSoftInputMode"&gt;stateUnspecified|adjustPan&lt;/item&gt;
          &lt;item name="android:windowCloseOnTouchOutside"&gt;@bool/config_closeDialogWhenTouchOutside&lt;/item&gt;
          &lt;item name="android:windowActionModeOverlay"&gt;true&lt;/item&gt;
  
          &lt;item name="android:colorBackgroundCacheHint"&gt;@null&lt;/item&gt;
  
          &lt;item name="textAppearance"&gt;@android:style/TextAppearance&lt;/item&gt;
          &lt;item name="textAppearanceInverse"&gt;@android:style/TextAppearance.Inverse&lt;/item&gt;
  
          &lt;item name="textColorPrimary"&gt;@android:color/primary_text_dark&lt;/item&gt;
          &lt;item name="textColorSecondary"&gt;@android:color/secondary_text_dark&lt;/item&gt;
          &lt;item name="textColorTertiary"&gt;@android:color/tertiary_text_dark&lt;/item&gt;
          &lt;item name="textColorPrimaryInverse"&gt;@android:color/primary_text_light&lt;/item&gt;
          &lt;item name="textColorSecondaryInverse"&gt;@android:color/secondary_text_light&lt;/item&gt;
          &lt;item name="textColorTertiaryInverse"&gt;@android:color/tertiary_text_light&lt;/item&gt;
          &lt;item name="textColorPrimaryDisableOnly"&gt;@android:color/primary_text_dark_disable_only&lt;/item&gt;
          &lt;item name="textColorPrimaryInverseDisableOnly"&gt;@android:color/primary_text_light_disable_only&lt;/item&gt;
          &lt;item name="textColorPrimaryNoDisable"&gt;@android:color/primary_text_dark_nodisable&lt;/item&gt;
          &lt;item name="textColorSecondaryNoDisable"&gt;@android:color/secondary_text_dark_nodisable&lt;/item&gt;
          &lt;item name="textColorPrimaryInverseNoDisable"&gt;@android:color/primary_text_light_nodisable&lt;/item&gt;
          &lt;item name="textColorSecondaryInverseNoDisable"&gt;@android:color/secondary_text_light_nodisable&lt;/item&gt;
          &lt;item name="textColorHint"&gt;@android:color/hint_foreground_dark&lt;/item&gt;
          &lt;item name="textColorHintInverse"&gt;@android:color/hint_foreground_light&lt;/item&gt;
          &lt;item name="textColorSearchUrl"&gt;@android:color/search_url_text&lt;/item&gt;
  
          &lt;item name="textAppearanceLarge"&gt;@android:style/TextAppearance.Large&lt;/item&gt;
          &lt;item name="textAppearanceMedium"&gt;@android:style/TextAppearance.Medium&lt;/item&gt;
          &lt;item name="textAppearanceSmall"&gt;@android:style/TextAppearance.Small&lt;/item&gt;
          &lt;item name="textAppearanceLargeInverse"&gt;@android:style/TextAppearance.Large.Inverse&lt;/item&gt;
          &lt;item name="textAppearanceMediumInverse"&gt;@android:style/TextAppearance.Medium.Inverse&lt;/item&gt;
          &lt;item name="textAppearanceSmallInverse"&gt;@android:style/TextAppearance.Small.Inverse&lt;/item&gt;
  
          &lt;item name="listPreferredItemPaddingLeft"&gt;10dip&lt;/item&gt;
          &lt;item name="listPreferredItemPaddingRight"&gt;10dip&lt;/item&gt;
          &lt;item name="listPreferredItemPaddingStart"&gt;10dip&lt;/item&gt;
          &lt;item name="listPreferredItemPaddingEnd"&gt;10dip&lt;/item&gt;
  
          &lt;item name="preferencePanelStyle"&gt;@style/PreferencePanel.Dialog&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>