Android-compatible example, closing #3