How to programmatically save sms to inbox or sent folders in android

To save sms / message in inbox or sent folder on default android’s messaging application, use following simple function. This code will save text message in all Android versions including above or below versions from Kitkat.

Call this function to save message on android’s default sms database.

onActivityResult

AndroidManifest.xml

HeadlessSmsSendService.java

MmsReceiver.java

SmsReceiver.java

 


  • Nad

    this is not work for android version 19 and above, any reason???