Android has, from ICS onwards (I think) provided the ability for a user to capture the system state, and then send or share the captured data with whomever they wish. See What does it mean with bug report captured in android tablet?
The captured data includes a screenshot, list of running processes, Logcat contents, active threads for each process, etc.
This is fantastically useful, but triggering it seems to involve the user pressing funny key combinations (Power + VolumeUp + VolumeDown) or enabling Developer mode and choosing specific options from there (Take bug report, Power menu bug reports).
Is there a way I can trigger this from my own code, so that I can offer my users a simple menu option to capture a bug report?