There are several well known explosives which can be mechanically triggered. I am curious about the mechanism of such a reaction, though. 

I guess one can give an easy answer when the explosive is sensitive to everything, flames and mechanical activation, too. What puzzles me is that several of these compounds, e.g. nitroglycerin or ammonium-nitrate much more difficult to trigger by simple flame. How mechanical activation is different?