How to access SMS Message threads from Windows phone programmatically

11,438

Solution 1

Unfortunately there is no API available for this.

But yesterday I've found this: http://wpdev.uservoice.com/forums/110705-app-platform

You can vote there:) Page is connected with apphub forum.

Solution 2

Currently there is no API which allows you to access the user's SMS. Though there is a way to launch the Messaging application with the "Body" and "To" filed programmatically filled in.

The Microsoft.Phone.Tasks provide you with various classes which allow your application to launch various inbuilt application in windows phone such as contacts application, sms application, email application, camera application, search application etc.

The SMSComposeTask class is what you need to launch the messaging application.

Share:
11,438
Pratik
Author by

Pratik

Updated on June 04, 2022

Comments

  • Pratik
    Pratik almost 2 years

    I want to access all messages on a windows phone & take the back up of it or make a copy of it on PC / Phone.

    I searched for this but couldn't get this on internet.

    Is there any API available for achieving this.

    This is for Windows Phone OS 7.5 Mango only.

  • Pratik
    Pratik over 12 years
    Thanks for your suggestion. I did vote there! But can't there be any way to access Messages (SMS) because its possible in Android OS
  • devarc
    devarc over 12 years
    At the moment you can only create sms by "launcher"
  • Jason James
    Jason James over 12 years
    Check out this MS page for more information. msdn.microsoft.com/en-us/library/hh394005(v=vs.92).aspx
  • Pratik
    Pratik over 12 years
    Can SmsComposeTask Class or Classes be able to get message in inbox (i.e. Stored SMS) through properties like Body & To which infact has GET behavior
  • Saurabh
    Saurabh over 12 years
    nope! It is only for the 'new message' and not the existing ones.
  • Pratik
    Pratik over 12 years
    Okay fine. If I'm not wrong its for sending a new message, so whenever I send a message can I access at that point of time to its body & get the content & store it somewhere by some background app ?? Can this be implemented ??
  • Saurabh
    Saurabh over 12 years
    You mean when the user sends an SMS or you (as the programmer send the sms?). If its the later then its your app, you can access the details as you are deciding what should be sent. If its the earlier then sorry there isn't a way for you to do that!