[Android] Updated example to handle screen rotation events (#531)