I have been doing a phonegap app for android but am stuck on the following; When I background the app and check the task magager, the app still consumes a considerable amount of CPU (between 5% and sometimes even to 15%). I have tried removing all other parts of my code but the only thing that stops the app from having CPU activity in the background is removing the phonegap.js from my code.
I was under the impression that Phonegap would halt javascript execution when going into onPause but I must be missing something.
I have tried 1.1.0, 1.2.0 & 1.3.0 to no avail. Interesting too is that if I fire up 2 apps with phonegap, their background CPU usage seem to behave the same: One goes up, the other goes up and mostly they are exact in usage up to the percentage point.
Has anyone got any idea what the app is still doing in CPU and/or how I could find out ?
Regards
the js execution is not halted when the app goes into onPause, it only halts when the app is closed/killed.