AndroidRunner: Fix CheckPidTimer to not fire forever
AndroidRunner: Fix CheckPidTimer to not fire forever

- Only start the timer after we are sure that the app is running.
- Stop the timer if we detect that the app was closed.

Task-number: QTCREATORBUG-9545
Change-Id: I7d08b759d3aa5baaa3f82ee09aefb17e7c5fb512
Reviewed-by: Paul Olav Tvete <97541fb6312d77f06e19078c7c70b2c1f75fb828@digia.com>
Reviewed-by: hjk <f81b91af79013637d070c18d38a75b90eaae8ba3@nokiamail.com>
Reviewed-by: Eike Ziller <c142da16c73a95a82d35191bcc55b22835617128@digia.com>

AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,richardmg/qtcreator,kuba1/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,farseerri/git_code,danimo/qt-creator,martyone/sailfish-qtcreator,duythanhphan/qt-creator,duythanhphan/qt-creator,farseerri/git_code,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,darksylinc/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,amyvmiwei/qt-creator,colede/qtcreator,Distrotech/qtcreator,malikcjm/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,colede/qtcreator,Distrotech/qtcreator,Distrotech/qtcreator,danimo/qt-creator,danimo/qt-creator,farseerri/git_code,darksylinc/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,darksylinc/qt-creator,darksylinc/qt-creator,malikcjm/qtcreator,colede/qtcreator,darksylinc/qt-creator,colede/qtcreator,omniacreator/qtcreator,duythanhphan/qt-creator,malikcjm/qtcreator,richardmg/qtcreator,farseerri/git_code,malikcjm/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,richardmg/qtcreator,danimo/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,duythanhphan/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,colede/qtcreator,danimo/qt-creator,maui-packages/qt-creator,maui-packages/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,xianian/qt-creator,kuba1/qtcreator,colede/qtcreator,omniacreator/qtcreator,kuba1/qtcreator,xianian/qt-creator,Distrotech/qtcreator,colede/qtcreator,richardmg/qtcreator,duythanhphan/qt-creator,xianian/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,danimo/qt-creator,maui-packages/qt-creator,kuba1/qtcreator,richardmg/qtcreator,malikcjm/qtcreator,farseerri/git_code,duythanhphan/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,farseerri/git_code,Distrotech/qtcreator,omniacreator/qtcreator,richardmg/qtcreator,darksylinc/qt-creator,xianian/qt-creator,amyvmiwei/qt-creator,omniacreator/qtcreator,kuba1/qtcreator,xianian/qt-creator,xianian/qt-creator,darksylinc/qt-creator,danimo/qt-creator,duythanhphan/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,darksylinc/qt-creator,danimo/qt-creator,richardmg/qtcreator,kuba1/qtcreator,malikcjm/qtcreator