title: Firebase user preferences as android preferences/settings
body: <p>I'm developing an Application using <strong>Firebase analytics, authentication and DB</strong> services.</p>
  
  <p><strong>I need to save some preferences and some settings, related to the user.</strong></p>
  
  <p>Most of them are managed in a "SettingsActivity" which is similar to the sample one provided by Android Studio, but with this configuration if the user changes the device, those preferences are lost.</p>
  
  <p>The app should provide a customizable experience for each user. To achieve this I'd like my <strong>preferences to be saved on Firebase insted of in local Preferences.</strong></p>
  
  <p><em>How can I achieve this without have to change too much my app structure?</em></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Here's an example:</p>
  
  <p>The user download my App on first device (Dev-A), he sign up, then he goes to settings and set first setting from A to B, and second setting from A to D.</p>
  
  <p>Then he decide to download my App on a second device (Dev-B), he log in, then he goes to settings. </p>
  
  <p>On Dev-A, first setting is set to B and second setting is set to D.</p>
  
  <p>On Dev-B, first setting is set to A and second setting is set to A.</p>