java - Why the second value is null when I tried to pass two value through intent? -


I tried to pass two values ​​from one activity to the other through intents, so I did:

  intent to intent = new intent (set alarm. This, show category); Bundle bundle = new bundle (); Bundle.putstring ("t", things); Bundle.putString ("Pa", PicturePath); Intent.putExtras (bundle);  

And then I tried to get all these values ​​in the target activity, so I have written these codes below:

  Bundle Extras = Millennant (). GetExtras (); String s = extras.getString ("t"); String path = additional .getString ("pa");  

The first value is fine, but the strange thing is that the path is zero. So what's wrong with this code?


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -