Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to import messages into the Android emulator?

Is there the possibility to import a list of SMS messages into the Android emulator for testing purposes?

like image 706
user1301428 Avatar asked May 07 '12 17:05

user1301428


People also ask

How can I transfer sms from PC to Android?

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.


3 Answers

Yes, there is a way. Here's how:

  1. Download "SMS Backup and Restore.apk" file from here

  2. Install the apk on your phone, or use google play.

  3. 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.

  4. Copy or move downloaded apk file to platform-tools folder in your android-skd folder.

  5. Windows: Run cmd and change into platform-tools dir.

  6. Type adb -s emulator_name install "SMS Backup and Restore.apk".

  7. 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.

  8. Run Backup and Restore app in the emulator and import the XML file...Done!

like image 147
sasykes Avatar answered Nov 16 '22 22:11

sasykes


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

like image 25
wdziemia Avatar answered Nov 16 '22 22:11

wdziemia


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.

like image 26
Kevin Coppock Avatar answered Nov 16 '22 22:11

Kevin Coppock