CodePudding user response:
The first pageIntent=new intent (MainActivity. This, Aty1. Class);
Intent. PutExtra (" img_src ", "img_src");//this pass you the picture path
Intent. PutExtra (" title ", "XXXX");//this pass your title
StartActivity (intent);
The second page:
Intent Intent=getIntent ();
String imgSrc=https://bbs.csdn.net/topics/intent.getStringExtra (" img_src ");
String title=intent. GetStringExtra (" title ");
CodePudding user response:
You transfer pictures, that is, it passed the address of the line, is nothing more than a stringCodePudding user response:
Pass the json string in the past, get on another page? Take it again