Question

I am creating an app where my users could buy additional content(data). This content saved for example in xml file. So I want to achieve such behavior that when the user buy part of payed content, my app receives this xml file, parse it and display data. Is there a way not to keep this file on device?

Was it helpful?

Solution

Implement InApp purchase to view this link(or load XML data in another activity) and have a unique SKU for each link to be purchased. You can find a Status check, if the link SKU is purchase or not, in the InAppBilling Library. So do a status check when ever the link is clicked, if not purchased popup the user to purchase, else load the XML data from online.

Is there a way not to keep this file on device? Load the XML file directly from Online. Or Download XML once and save the XML content(Not file) in the DB.

Cheer :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top