Added onDeviceReady for Android