the simplest way to catch input data from audio jack in android or iphone is through recording
http://developer.android.com/reference/android/media/AudioRecord.html
think something similar like playing a linear pcm audio file , I have n't tried but I believe it should work