Keyboard text entry on Android

When I previewed my game on my Android smartphone, the screen shrunk when the keyboard opened so that I could see what I was typing. However, when I exported as a .apk file and installed that on the same phone, when the keyboard opened nothing was resized so the keyboard went over the top of the text box and you can’t see what you’re typing.

How do I get the screen to resize when the keyboard appears for text entry on Android even when installed as a .apk file?

No matter, for now I’ve modified my game to scroll my text higher up in the display when keyboard entry is required, and then scroll it lower once the keyboard entry is completed.