¡@

Home 

2014/10/16 ¤W¤È 08:21:34

android Programming Glossary: presenter

Which design patterns are used on Android?

http://stackoverflow.com/questions/4916209/which-design-patterns-are-used-on-android

android design patterns share improve this question I tried using both the Model View Control and Model View Presenter design patterns for doing android development. My findings are Model View Control works fine but there is a couple of issues.. the activity is the natural entry point of most applications. Because of this i personall find that the Model View Presenter pattern is a perfect fit for android development. Since the Views role in this pattern are serving as a entry point rendering.. This allows you to implement your model like so View this contains your UI components and handles events for them. Presenter this will handle communication between your model and your view look at it as a gateway to your model. Meaning if you have..

What is an easy way to stub / dummy a restful web service?

http://stackoverflow.com/questions/8788904/what-is-an-easy-way-to-stub-dummy-a-restful-web-service

REST web service call into an interface the Model . The responsibility of this model class is to provide data to the Presenter Controller. The Presenter will handle all of your business logic and then pass data up to the view the view should be pretty.. an interface the Model . The responsibility of this model class is to provide data to the Presenter Controller. The Presenter will handle all of your business logic and then pass data up to the view the view should be pretty dumb as well allowing.. be mocked out . During testing you will create a MockModel to implement the model interface and pass test data to the Presenter without making an actual web service call at all Then when you're ready you will replace this class with the actual web..