issue#294 resolved and onCreate debug dialogue is not shown
corrected the wrong state-change
time is now measured by using system time function
branch issue294 for #294 is merged