using sendData and OnReceiveData instead of pendingintent