title: How to set values globally in android
body: <p>How to set values globally so that i can access from any activity or fragment.</p>
  
  <p>For eg : activity_login.java > user_id need to store globally so every time any section which depends on user_id, checking and pulling data from backend will be easy instead of passing through activity (intent)</p>
  
  <p>Edit : 
  i do need setter and getter from <strong>fragment</strong> or activtiy.</p>