I parsed the json data and put these values in database(Sqlite database). Next time when i open the activity it again parsed the data and put these values in database.
so i want to check first whether data is in sqlite?, if so then i need to skip parsing. And just get these values from database. how can i do this?
I parsed the json data and put these values in database(Sqlite database). Next time
Share
Try this.
If there are no records in table then it returns 0 otherwise returns no of records.