java - FacebookSDK for Android: How to store the GraphObject from a Response as a member variable for later access -


i have declared class has following member variable:

graphobject myfeed; 

within class, working oncreate(bundle) method:

@override protected void oncreate(bundle savedinstancestate) 

i have following snippet of code inside method, pull news feed (the session has been set properly):

     request request = new request(session,         "/fql",                                  params,                                  httpmethod.get,                          new request.callback(){                      public void oncompleted(response response) {                 // issue here - myfeed not updated store                  // graphobject returned response.getgraphobject...                 myfeed = response.getgraphobject();             }                     });  

i'm wondering how modify code store graphobject somehow in class can access @ later point (and not within scope of oncompleted method)?

i tried saving member variable (myfeed) inside class, since performing assignment inside parameter setting up, changes not propagated through member variable.

thanks in advance!

did ide asked transform myfeed final member?

why don't create method call graphobejct argument , inside method assign value class member?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -