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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -