I am creating an SMS Application to send and receive SMS.
I am able to send SMS using the following code:
SmsManager sms = SmsManager.getDefault();
I don't think you can place sms in different inboxes and you don't listen to a port to get SMS you use a BroadcastReceiver.
BroadcastReceiver
I would recommend you to go through the open source smspopup app to get a better idea of how things work for sms in general.