misaalturakhia / chatapp Goto Github PK
View Code? Open in Web Editor NEWCreate Sqlite Database & a single table “MESSAGES” consisting of below columns Table columns: MESSAGE_ID (STRING) MESSAGE_TYPE (STRING) // 0 for text message: 1 for image url MESSAGE_DATA(STRING) // This could be String or Image web url. MESSAGE_TIMESTAMP (STRING) Populate test data from this link: http://pastebin.com/aqziuquq When the app opens, show a list view mapped to MESSAGES table using CursorLoader class. If the type of the message is “0” show a text view & if the type is 1 show an image in the list view.