android - Getting error while retriving the getStringExtra -


here source ...

i getting null values while putting values in intent ... here getting value other activity gives null values when click on continue

private button continue_to_addfriends; string name = ""; string emailid = ""; string userbirthdate = ""; string password = ""; private intent j;   @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.activity_robot_verify);      j = getintent();      name = (string) j.getstringextra("name");     emailid = (string) j.getstringextra("emailid");     userbirthdate = (string) j.getstringextra("userbirthdate");     password = (string) j.getstringextra("password");      system.out.println(name+" robot activity");      continue_to_addfriends=(button)findviewbyid(r.id.button_robot_done);      continue_to_addfriends.setonclicklistener(new onclicklistener() {          @override         public void onclick(view v) {              intent i=new intent(getapplicationcontext(),usernameverifyactivity.class);             i.putextra("name", name);             i.putextra("emailid", emailid);             i.putextra("userbirthdate", userbirthdate);             i.putextra("password", password);              system.out.println(password+" robot intent putting");             startactivity(i);             overridependingtransition(r.anim.animation,r.anim.animation2);             finish();          }     }); 

here log file...

![log][1] 

enter image description here

please use this.

bundle j= getintent().getextras(); name = (string) j.getstring("name"); emailid = (string) j.getstring("emailid"); userbirthdate = (string) j.getstring("userbirthdate"); password = (string) j.getstring("password"); 

i hope useful you.


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 -