i have included this file in a project of android 2.3.3
import android.telephony.gsm.SmsManager;
It shows the code as follows(strikes out the smsmanager text)
import android.telephony.gsm.SmsManager;
and a shows message
"SmsManager is deprecated"
how can i fix this?
According to the doc here :
This class is deprecated. Replaced by android.telephony.SmsManager that supports both GSM and CDMA
Since API 4.
android.telephony.gsm.SmsManager is deprecated and was replaced by android.telephony.SmsManager that supports both GSM and CDMA. android.telephony.SmsManager is available for API level 4 and up (a.k.a Android 1.6). See the docs. You can use Android.os.Build.Version to figure out which to use on a given platform
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With