Monitor downloading apps/files in Android
===

I am trying to write a code for android so it would be like a listener/monitor that checks any app going to be downloaded and maybe logs it (log the source URL)

Can anyone help me with this? any tutorial or sample code would be great.

Thanks