How to record output audio stream in android and transfer it

view story

http://stackoverflow.com – I am trying to make application that can record the output audio stream, transfer the record to another phone and play it there. I have two questions, 1. How i cant get the output audio stream and record it? 2. What is the best way to transfer the record?(bluethooth,wifi,internet), i need it to be fast . (HowTos)