How to access SMS Message threads from Windows phone programmatically
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.
Pratik
Updated on June 04, 2022Comments
-
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 over 12 yearsThanks 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 over 12 yearsAt the moment you can only create sms by "launcher"
-
Jason James over 12 yearsCheck out this MS page for more information. msdn.microsoft.com/en-us/library/hh394005(v=vs.92).aspx
-
Pratik over 12 yearsCan 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 over 12 yearsnope! It is only for the 'new message' and not the existing ones.
-
Pratik over 12 yearsOkay 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 over 12 yearsYou 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!