Added bi-directional commuinication for android wrapper