How to Get a Default Instance of SmsManager

public static SmsManager getDefault () was added in API level 4
Get the default instance of the SmsManager
Returns: the default instance of the SmsManager

1. In the MainActivity.java file, Declare a SmsManager object named mySmsManager

2. In the onCreate method, add the below line. This will get the default instance of the SmsManager and save it to a SmsManager object named mySmsManager

mySmsManager = SmsManager.getDefault();