Is there the possibility to import a list of SMS messages into the Android emulator for testing purposes?
Launch Droid Transfer on your PC. Open the Transfer Companion app on your phone and connect via Wi-Fi or USB. Click on Messages in Droid Transfer and select the conversations you wish to save. Click on Save PDF to backup your messages to a PDF file.
Yes, there is a way. Here's how:
Download "SMS Backup and Restore.apk" file from here
Install the apk on your phone, or use google play.
Export your SMS messages on your phone and share the XML backup file to your computer, either email it yourself or if you move the app to your sdcard before you backup you can fetch the XML file off the sdcard by copying it to your computer.
Copy or move downloaded apk file to platform-tools folder in your android-skd folder.
Windows: Run cmd
and change into platform-tools
dir.
Type adb -s emulator_name install "SMS Backup and Restore.apk"
.
Now change to DDMS mode in Eclipse and create a folder called SMSBackupRestore
under mnt/sdcard
so it would end up being mnt/sdcard/SMSBackupRestore
.
Run Backup and Restore app in the emulator and import the XML file...Done!
Im not sure about importing SMS messages from an existing file into an emulator. However, what i do know is that you could spoof text messages via DDMS. You could do that and then start up your app to do the magical things you want to do. Android Dev - Using DDMS
You could use an app such as SMS Backup and Restore, and make an archive of your own text messages. It saves it out as XML, so you could always modify it if you wanted to. Then, just install that app onto the emulator (I'm assuming you can install 3rd party apps on the emulator, but I'm not certain), and then restore from that XML file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With