i have service reads data socket connection , during peak hours. frequency of changes every 5 seconds.
i have 2 options in mind.
update
list, usingbroadcastreceiver.create new
threadinactivitycreatedlist, read static variable every 5 seconds, , when change occurs, change static variableservice.
which option more efficient , pros , cons of both? if think there better option, please let me know.
thank you.
i use broadcastreceiver (with localbroadcastmanager) option. recommend make model class implement parcelable. avoid solution 2
Comments
Post a Comment