I have an application that gets an api key and account name from a webservice, I am storing this apikey and account name for further use(multiple accounts and apikeys).
because you can only store primitive types in the sharedPreferences I parse the JSONArray toString.
In another part of the application the user must be able to remove an account from his app.
So I retrieve the string and Parse it back to an JSONArray.
how do I remove an JSONObject from the array and save it so I can parse it back to an string and save it again?