android - Handing over Facebook data via Intent -


i trying pass facebook data 1 activity another.

the logs in activity 1 show data received (name, age etc.).

however, when try work data in activity 2, nothing happens. none of logs @ bottom show up. idea i'm doing wrong?

protected void handlefacebookdata()  {      intent intent = getintent();     name = (string) intent.getserializableextra(const.name);     log.d(profile.class.getsimplename(), "got fb name");      age = (string) intent.getserializableextra(const.age);     log.d(profile.class.getsimplename(), "got fb age");      imgurl = (string) intent.getserializableextra(const.pic);      x = bitmapfactory.decodefile(imgurl);     log.d(profile.class.getsimplename(), "got fb picture");     facebookdata = true; } 

                        final intent intent = new intent(                                 mainactivity.this,                                 profile.class);                          intent.putextra(const.name,                                 getfacebookaccountname(userstring));                         intent.putextra(const.age,                                 getfacebookage(userstring));                         intent.putextra(const.pic,                                 getfacebookimage(userstring));                         startactivityforresult(intent,                                 request_for_result_create);                                               } catch (malformedurlexception e) {                         // todo auto-generated catch block                         e.printstacktrace();                     } catch (ioexception e) {                         // todo auto-generated catch block                         e.printstacktrace();                     }                 }                  @override                 public void onerror(dialogerror de) {                     log.v(tag, "********************** fb: onerror()");                 }                  @override                 public void onfacebookerror(facebookerror error) {                     log.v(tag,                             "********************** fb: onfacebookerror()");                 }             }); } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -