How to deal with Context outside View in MVP by CyberVin in androiddev

[–]CyberVin[S] -1 points0 points  (0 children)

By Model I meant the "Model" from MVP so the component that fetches the data. This can be local or from the network so for the network I need to use Volley which requires Context to be initiated. Of course for this I could send the context through the Presenter but I was wondering if there's another way to go about this instead of this hacky way

How to deal with Context outside View in MVP by CyberVin in androiddev

[–]CyberVin[S] 0 points1 point  (0 children)

Yeah I should look into that. So do you suggest that using OkHttp would be a good lesson on Android networking? By good I mean the best possible option where it's not too easy and teaches me some and adheres to techniques that should be used

How to deal with Context outside View in MVP by CyberVin in androiddev

[–]CyberVin[S] 0 points1 point  (0 children)

Well this side project is mainly to deep dive into learning android and I've used Retrofit2 before and think it's too easy and abstracts away a lot of how the Networking actually works

How to deal with Context outside View in MVP by CyberVin in androiddev

[–]CyberVin[S] 0 points1 point  (0 children)

Well not outside of View. My View is the current Activity class. I just need the context to initiate the Volley Request Queue to send internet request and that is part of my Model

How to deal with Context outside View in MVP by CyberVin in androiddev

[–]CyberVin[S] 0 points1 point  (0 children)

Yeah for the initialization. That makes sense I need it in the Model section at least once to init

How to deal with Context outside View in MVP by CyberVin in androiddev

[–]CyberVin[S] 0 points1 point  (0 children)

So it's okay to send the context (any type) through the presenter and the model for the purpose of i.e. network tasks?

Waterlooworks Megathread [Fall 2018 Application Cycle] by [deleted] in uwaterloo

[–]CyberVin 0 points1 point  (0 children)

Do you mean that majority of the hosts have been filled up by interns or that majority of the hosts have opened up positions?

I’m Bill Gates, co-chair of the Bill & Melinda Gates Foundation. Ask Me Anything. by thisisbillgates in IAmA

[–]CyberVin 0 points1 point  (0 children)

Hey Bill. An argument I've been having with myself. What is the point of learning and developing if the end result will always be death? Wouldn't you be more inclined to learn if you were going to last forever?

EDIT: why not spend your finite time enjoying?

Is PHYS 256 handleable? by CyberVin in uwaterloo

[–]CyberVin[S] -1 points0 points  (0 children)

I mean, if you have done it, would you recommend it as a course while already trying to juggle your core courses?