I have a dead simple Cordova app with a single plugin: org.apache.cordova.file.
When I emulate the app in an android emulator, the deviceready event is
deviceready
You need to include cordova plugin before closing of body tag , so that cordova gets loaded properly before body loading completes.