bb xm android accessing rs232?

Hi guys, I need to send/receive data through bb xm rs232 or usb to ttl uart under android environment. can anyone give me any related sample code resource? meanwhile, is that any possibility for the bb xm to talk directly with ttl uart in android?