title: How to detect expanding of status bar?
body: <p>My application allows launching of other application from mine.  None of my activity shows Status Bar.But when launching other applications like Camera the user can access the <code>status bar</code>.So i tried the following code snippet for collapsing the <code>Status Bar</code> inside a service(So it collapse every time and code running always).</p>
  
  <pre><code>int currentapiVersion = android.os.Build.VERSION.SDK_INT;
  Object service = getSystemService("statusbar");
  Class&lt;?&gt; statusbarManager = Class.forName("android.app.StatusBarManager");
  Method collapse = null;
  if(currentapiVersion &lt;= 16){
      collapse = statusbarManager.getMethod("collapse");
  }else{
      collapse = statusbarManager.getMethod("collapsePanels");
  }
  collapse.setAccessible(true);
  collapse.invoke(service);
  </code></pre>
  
  <p>Now i want to collapse <code>status bar</code> only if user try to expand this.Is there any <code>intent</code> or <code>intent filter</code> exist for detect expanding of <code>Status bar</code>?</p>
  
  <p>Thanks in Advance</p>