There is an issue in that code discussed in the comments below. There is a newer improved version of the code in the Facebook Clone if you have the online courses. I'll try to dig through my code to find it and post an updated blog with that.
-- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/910531cb-66fc-4fa9-ae69-bad9c60ecb3b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.