I have been learning Android Studio, and im really stuck. This morning i had a code that send SMS's quite easly. But, now for some reason it is no longer working.
This is the code i have:
public void onClick(View v)
{
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage("9082300752", null, "10" , null, null);
}
I added the permission in the Manifest
<uses-permission android:name="android.permission.SEND_SMS"/>
And i imported:
import android.telephony.SmsManager;
I still get the error
12-07 16:36:03.028 20796-20796/com.example.owen.smstest D/HtcTelephonyCapability﹕ traditional single GSM/CDMA/World-phone
12-07 16:36:03.028 20796-20796/com.example.owen.smstest D/HtcTelephonyCapability﹕ The project is not dual project , phone_feature_type_stand_by = 0
12-07 16:36:03.028 20796-20796/com.example.owen.smstest D/HtcBuildUtils﹕ getRATByHtcTelephonyCapability:1
12-07 16:36:03.038 20796-20796/com.example.owen.smstest W/SystemReader﹕ Cannot find qct_8960_interface, use default value instead
Im out of ideas, any help would be greatly appreciated.