android - Sort and Show push notification in list -


I am implementing push notification in Android and following this process to receive notification in the current date Along with the information entry and time in the database along with it.

Now I want to show a list of all the notifications but the list should be shown in the SORTED manner, as the last information should be shown in the first time.

I am trying to sort, but SQLite does not support the date type, but I saved it in string as dd-mm-yyy format.

How can I organize notifications based on dates? Please help

If you store dates in the correct format (always 2 digits hour / minute / second Use / day / month, 4 digit year, from the largest time to the smallest unit) You can simply base the sort of wiring on the basis.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -