Profile cover photo
Profile photo
Wade Reweti
116 followers -
Google evangelist but slowly starting to bat for the other team :)
Google evangelist but slowly starting to bat for the other team :)

116 followers
About
Wade Reweti's interests
View all
Wade Reweti's posts

Hi all I'm looking for some guidance. I think I have a pretty good understanding of dagger and I'm using mvp quite well (I think) My problem is I have an issue with using a presenter with a fragment. For some context I'm also using retrofit and Otto. So I inject my presenter into my fragment, when the presenter is provided all it's own dependencies are satisfied as we'll. I inject the presenter with a bus instance as well as an asynctask. The reason I inject the asynctask is I query it on rotation to determine what view to render. That is a loading view or the default view. Now all the injection happens ok where I'm stuck is, I now have two instances of my fragment as when my async task completes and I post back to the presenter I have two presenter instances. I've ensured that the objectgraph is set to null on fragment onDestroyView and this fragment is also NOT retained. The same solution works for my activities just not my fragments. Also this fragment is inside a view pager :). Can anyone shed any light on what I'm doing wrong or perhaps a better solution

Post has shared content

Post has attachment
Pure Awesome! +Nephi Johnson dare you too :)

Post has shared content
New ways to connect your app to the Cloud using Android Studio and Google Cloud Platform
Posted by Manfred Zabarauskas, Product Manager on Google Cloud Platform Many Android developers like Snapchat or Pulse build and host their app backends on the Google Cloud Platform , and enjoy automatic management, with simple expansion to support millions...

#AndroidStudio #GoogleCloudPlatform

Post has shared content

Post has shared content

Post has attachment

Post has shared content
Not my code :)

Post has shared content
Interesting read
Useful presentation if you are thinking about micro-services.

Post has shared content
guilty
Top 20 replies by programmers.. #ComputerWorld
Photo
Wait while more posts are being loaded