[Android] Add the callback of onTitleChanged in test.

This feature is requested when pull request #513 get reviewed.
Merge pull request #585 from wuhengzhi/titleChange

[Android] Add the callback of onTitleChanged in test.