Android N FileUriExposedException
问题 Guys My app uses the stock camera to take a picture I use the following code to take a picture public void takepic(View view) { TextView schtitle = (TextView) findViewById(R.id.Sitename); String schname = schtitle.getText().toString(); String[] tokens = schname.split(" "); String timeStamp = new SimpleDateFormat("dd-MM-yyyy-HH-mm-ss").format(new Date()); String imageFileName = tokens[0] + "-" + timeStamp + ".jpg"; TextView myAwesomeTextView = (TextView)findViewById(R.id.filetext); //in your