mHealthDroid: a framework for the rapid development of mHealth applications in Android