Android: use QGuiApplication::applicationState() for releasing camera.

We previously had a custom Java class to listen for Activity state
changes but that was a bit hackish. Use the new QGuiApplication API
instead.

Change-Id: I658efc578dfcd281439a57905ca1fd4ae1b4ac2b
Reviewed-by: Christian Stromme <christian.stromme@digia.com>