Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.13 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.13 KB

vidtomp3-api-parser-android

vidtomp3.com API XML Parser for Android

How to use this stuff

How to use this parser in your project
...
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!

Check out my code!

  • Clone this repo below
https://github.com/ingamedeo/vidtomp3-api-parser-android.git