I think that your application is uninstalled before reinstalling - this will lead to the loss of SharedPreferences. This can be controlled using the Android Maven plugin parameter undeployBeforeDeploy .
I just tried to create a Maven project with the android-quickstart archetype and found that it automatically added the following line to my POM:
<undeployBeforeDeploy>true</undeployBeforeDeploy>
Try to set to false and try again.
If you set it to true, it prints this line in the console when you run mvn android:deploy :
[INFO] Successfully uninstalled [package] from [device]
source share