vidtomp3.com API XML Parser for Android
- Add Vidtomp3parser.java to your Project
- Send a POST request to http://www.vidtomp3.com/cc/conversioncloud.php and extract statusurl from the response
- Write some code:
...
InputStream instream = httpEntity.getContent(); //Get Inputstream from response
Vidtomp3parser parser = new Vidtomp3parser();
HashMap<String, String> data = parser.parse(instream);
- Now you can access status, videoid, file, downloadurl and filesize tags.
/* Data */
private String title;
private String videoid;
private String mp3url;
private String status;
private String downloadsize;
...
status = data.get("status");
if (status.equals("finished")) {
videoid = data.get("videoid");
title = data.get("file");
mp3url = data.get("downloadurl");
downloadsize = data.get("filesize");
}
- Done!
- Clone this repo below
https://github.com/ingamedeo/vidtomp3-api-parser-android.git