Mingo, Ondesly, please check my comments on this pull request and on the code I posted on Issue #2883. This pull request can be improved to support more android devices and iOS also. Unfortunately I am not familiar with GIT to create another pull request but I have posted all my code in redmine issue #2883.