Save enum to SharedPreference
<p>I was wondering, what is the common method being used to save <code>Enum</code> to <code>SharedPrefereces</code>? Currently, I'm using <code>gson</code> to convert enum to String, and then save it to <code>SharedPrefereces</code>.</p>

<pre><code>    Gson gson = new Gson();
    // country is an enum.
    String json_country = gson.toJson(country);
    sharedPreferences.edit().putString(COUNTRY, json_country);
</code></pre>

<p>I was wondering, is this a good way? Is there any better way?</p>
