title: Change z order of activity above dialog
body: <p>I work on customizing android ROM.I am changing the z-order of my activity to display above dialogs of type (TYPE_SYSTEM_DIALOG). </p>
  
  <p>That means, when  dialog(TYPE_SYSTEM_DIALOG) is shown already and i get a broadcast intent to start another activity. This new activity should be displayed on top of that dialog. I swapped  the values of TYPE_SYSTEM_DIALOG and TYPE_PRIORITY_PHONE in WindowManager.java. Now in oncreate of my activity i put       </p>
  
  <p>getWindow().setType(WindowManager.LayoutParams.TYPE_PRIORITY_PHONE); </p>
  
  <p>but when i run i still dont see this new type. 
  I then checked windowTypeToLayerLw() of PhoneWindowManager.java. There also i swapped values for these two flags. But its not working. Am i missing something?.Please help me.</p>