0

How can I fill the USER_EMAIL field with ACRA crash reporter?

The report starts with:

USER_EMAIL = N/A

Thorsten Niehues
  • 13,712
  • 22
  • 78
  • 113

1 Answers1

2

To set the USER_EMAIL field edit your SharedPreferences

SharedPreferences prefs = ACRA.getACRASharedPreferences();
prefs.edit().putString(ACRA.PREF_USER_EMAIL_ADDRESS, user).commit();
Thorsten Niehues
  • 13,712
  • 22
  • 78
  • 113