Help VkApiAudio in the form of json
I have so:
if (attachment.getType().equals(VKAttachments.TYPE_AUDIO)){ final VKApiAudio audio = (VKApiAudio) attachment; Log.d("TAG", "audio title: " + audio.url); But everything comes, except for audio.url . Maybe you can parse it all as a thread in the form of json ????
Something like:
JSONArray att = (JSONArray) item.getJSONArray("attachments"); JSONObject xx = (JSONObject) att.get(0); img = xx.getJSONObject("audio").getString("url"); Log.d("MSCurrentPost", "JSON: " + img);