From: | Sutirth C. |
Sent on: | Wednesday, July 22, 2015, 1:36 PM |
Hello Sutirth,It depends on where you call the volley methods and how many times its getting called depending on the viewpager or whatever your using. I recommend you to use https://github.com/neokree/MaterialTabs this library. This is pretty much easy to use and solved the same problem i had to deal with.Deepak Baliga,Freelance Android Developer,[masked]On Sun, Jul 19, 2015 at 4:03 PM, MAYO <[address removed]> wrote:Hi,
Use Boolean variable which can be accessed across the app for the status of that network call.
On Jul 18,[masked]:37 PM, "Aman Alam" <[address removed]> wrote:This has got to do with fragment lifecycle and you'll have to implement custom measures to protect against it.
--
sent from my Android (Zenfone 2)On Jul 18,[masked]:06 PM, "Sutirth Chakravarty" <[address removed]> wrote:SutirthI am using Volley in sliding tab fragments for network call. The thing is whenever I switch back to the tab which has gone out of the view the Volley gets call again if I use onActivityCreated and I get duplicate output of same request . Any solution so that network call doesn't happen again.Regards,
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Sutirth Chakravarty ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Sutirth Chakravarty, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aman Alam ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Aman Alam, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by MAYO ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about MAYO, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]
--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Deepak Baliga ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Deepak Baliga, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]