Sending the SMS from android programmatically

How to send SMS from android using java programming

Step 1: Add Permissions to the Manifest File and OnCreate Method of Activity. If you are dealing with fragment you must add it to OnCreateView Method.

Code Snippet for Manifest File

First you need to declare these variables on top of the activity or fragment class