Called timed alarm from mainActivity.java
merged