[Android] Make sure our calls to native are protected in a try/catch blocks

This is following practice of upstream.
Merge pull request #2255 from darktears/protocol

[Android] Make sure our calls to native are protected in a try/catch blo...