The virtual swap provides the flexibility to the e-health mobile application, to make use of the functionality of both resources: the mobile (in terms of the mobile sensors like Camera sensor, accelerometer sensor and the magnetic field sensor) and also the cloud resources (in terms of computation power and storage capacity).