Monday, 6 July 2015

TO SEND AN SMS FROM OUR APP




     JAVA CODE:    

SmsManager s=SmsManager.getDefault();

 s.sendTextMessage("Put the required number here", null,"Put the required text here", null, null);


Requires a permission so add this in manifest.xml

<uses-permission android:name="android.permission.SEND_SMS"/>


No comments:

Post a Comment