title: How to capture intent (with action "android.intent.action.VIEW") programatically
body: <p>I am getting following log while previewing a Gmail attachment. I want to receive(sniff) this intent(with action <code>android.intent.action.VIEW</code>) programatically. I have created intent filter with <code>android.intent.action.VIEW</code> action and I have registered this filter with a broadcast receiver. Still, I am not able to receive broadcasted intent. </p>
  
  <p>How can I achieve it programatically? Help highly appreciated.</p>
  
  <pre><code>LogCat:
  12-07 18:21:50.528: I/ActivityManager(96): Starting: Intent { dat=content://gmail-ls/messages/hawkagent%40interfaceinfosoft.com/35/attachments/0.1/BEST/false cmp=com.google.android.gm/.ViewAttachmentActivity } from pid 8309
  
  12-07 18:21:52.598: I/ActivityManager(96): Starting: Intent { act=android.intent.action.VIEW dat=content://gmail-ls/messages/hawkagent%40interfaceinfosoft.com/35/attachments/0.1/BEST/false typ=text/plain flg=0x80001 cmp=android/com.android.internal.app.ResolverActivity } from pid 8309
  </code></pre>