Android development.
The response is like this:
<div id="Song" data-airtime="14:12:52" data-runtime="207.25">
<span id="artist">Weeknd</span><span id="titl">Can't Feel My Face</span></div>
I need the artist, and the title. The problem with the substring indexof(value) method, that the response lenght not a fixed sized, for example, if the artist name is longer.. etc..
How to substring or split to match the correct form?
I tried the left side is ok.
String left = name.substring(name.indexOf("artist\">")+8);