I am wanting to create an Android app that will mostly be used with a bluetooth headset. What I want to know is if the audio from the app will play through a bluetooth headset and also to use the microphone on the headset for talking to the app. I would like to also have the app use built in sound and microphone if a bluetooth headset isn't connected to the device. Is this possible? If so could you please leave the code that would make this possible!

Thanks,
Hunter