added sendToAndroid() and receiveFromAndroid() function