I'm looking for tutorials, and guidance and not code.

I'm developing a project and the core of the work has been written in C++ and I need to build a user-interface for the Andriod platform. The Android application will work like this:

> 
> Problem 1:
> 
> 
> There will be a button in which a user can "press" in which they can speak, this is then converted into a .wav file (setting the sample rate etc..) This will then be sent to the library (which is written in C++) and then the result from this is then send back to the interface.
> 
> 
> Problem 2:
> 
> 
> I need a way to send a small piece of data (after the event of the above) to a Raspberry Pi in which it will trigger some LEDS. (I have completed the LEDS part).
> 
> 
> 

I was thinking that maybe it may be possible to use sockets. In that, the Raspberry Pi is "listening" for data to be sent (it will just be either 1, or 0) and then if "1" is received it then triggers an event. Does this sound like a good method to take?

Would it therefore be a lot better to develop this application using the SDK (Java) or should I just complete the whole project in C++?

Any help, advice and/or tutorials would be greatly appreciated