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();
3. Compile and run!
Resources:
- Professional Android 4 Application Development by Reto Meier, pg 714
- http://developer.android.com/reference/android/telephony/SmsManager.html#getDefault()
Resources:
- Professional Android 4 Application Development by Reto Meier, pg 714
- http://developer.android.com/reference/android/telephony/SmsManager.html#getDefault()