code: public static SharedPreferences getSegmentSharedPreferences(Context context, String tag) {
      return context.getSharedPreferences("analytics-android-" + tag, MODE_PRIVATE);
    }
docs: Returns a shared preferences for storing any library preferences.