Designing a networking layer in Android app -


i working on android app networking aspects. there places in app that, when button pressed, call made server response full of data coming back. question regarding creating robust flow have network calls separated in own class , instantiate networking object such new mynetworkhelper(accessclientserver) , give name of client server. object instantiate appropriate object (clientserver or studentserver or teachersever etc) accessing server , doing database saving , returning response mynetworkhelper object return button pressed.

is best way kind of task?

what propose not unreasonable more standardized using standard patterns such helper being singleton (and additional servers if intended used in such fashion). recommend pick beginner book in design patterns , architecture.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -