Fix motion alert counter reset

The counter was reseted after each resume of the Android application,
this should actually only happen if a notification is selected. I simply
moved the counter reset into the appropriate method. In addition, I have
shortened the timestamp which is generated on the server side.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>