Parsing code from a database using HTML requests and JSON parsing while parsing between different activities