Wednesday, May 22, 2013

Preserving data during Xamarin.Android debugging - e.g. keeping your SQL and your settings files

Great advice from http://stackoverflow.com/questions/16695739/doesnt-create-save-database

To preserve data and cache data between application installs:

In Visual Studio:

  • Click Tools > Options...
  • In the left-hand tree, select Xamarin > Android Settings
  • In the right-hand panel, select [X] Preserve application data/cache on device between deploys.

In Xamarin Studio:

  • Click Tools > Options (Windows) or Xamarin Studio > Preferences (OS X)
  • In the left-hand tree, select Projects > Android
  • In the right-hand panel, select [X] Preserve data/cache between application deploys.

Based on the post on Xamarin Forum

4 comments:

  1. Thanks for the tip. Works perfectly

    ReplyDelete
  2. Thanks for the tip, the VS step worked as outlined

    ReplyDelete
  3. Thank you. You just saved me countless hours wasted on debugging through the console :)

    ReplyDelete
  4. Doesn't seem to work for me on a Moto G with Xamarin Studio 5.9.7... any ideas?

    ReplyDelete