[Android] Add the callback of onTitleChanged in test.

This feature is requested when pull request #513 get reviewed.