How to save SMS to inbox in android?


You can use the SMS content provider to read and write SMS messages:

ContentValues values = new ContentValues();
values.put("address", "123456789");
values.put("body", "This is a test message!");
getContentResolver().insert(Uri.parse("content://sms/inbox"), values);

also add these in manifest:

<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.WRITE_SMS"/>

How to make a phone call in Android Application


You can use this code for making a phone call in your application:

String number = "tel:" + phoneNumber;
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(number));

also you have to add this permission to your application manifest file:

<uses-permission android:name="android.permission.CALL_PHONE" />