My Android application is expecting and array of usernames from my WCF Service using the following Java, to then populate a spinner.
JSONArray mtUsers = new
actually you are getting jsonObject, the value of the first key "GetUserNamesResult" is JSONArray.
so do this..
JSONObject jsonResponse = new JSONObject(new String(buffer)); JSONArray mtUsers = jsonResponse.getJSONArray("GetUserNamesResult");