Dynamically create Android Fragments using JSON
<p>I was able to have a ViewPager with two fragments within them to create an interface where people can swipe the screen and see two 'pages'. This I was able to do by defining them in the beginning.</p>

<p>However, what I am trying to do now is to read a JSON and dynamically create fragments. The JSON will have information about some text and image URLs with which I want to create multiple fragments. The JSON will be read from a URL.</p>

<p>How do I achieve this? Could someone kindly point me in the right direction?</p>

<p>Also, in the Fragments, there are two types - One which says v4 support and another that doesn't say that. What's the difference and which one should I use? Is one used for backward compatibility?</p>
