This is a workaround for QTBUG-80533. Command line applications are no
longer supported on Android. As we use the heartrate examples as test
cases for bluetooth, we work around this problem by instanciating a gui
application which fixes the compile error on Android.
Change-Id: If06767eb6ff534077f193163991d9d506c17e50e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Disconnecting from central devices invalidates the peripheral's service.
The change ensures that the service is recreated upon disconnection.
Change-Id: I2defc6ffb4c9f23d70b6f181c25f47746b3859a4
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>