bugsense/bugsense-android — pull request #2 by nikreiman (2011-10-31 13:37:21+00:00)
Title: Allow passing custom variables to server in error reports

This patch allows the client to call `submitError()` with a list of name/value pairs in order to add custom reporting to error reports. I have taken care to make sure that the existing API remains unchanged, so for a client to take advantage of this feature, they must first call `makeDefaultErrorKeyList()` to get a list of values expected by the server, then add some of their own keys, and then pass the resulting list to `submitError()`. I have checked against the live BugSense server that these keys show up in error reports as expected.

Also, the refactoring of the name/value pairs into a separate method should make it easier should new items be added in the future.