Android: how to open image from gallery?
问题 I've created a method in my app that saves my layout as an image and presents it in the gallery. I'm trying to open it but I'm having a hard time with all the tutorials and different approaches... This is my code: SimpleDateFormat mTimeFormat = new SimpleDateFormat("dd-MM-yyyy"); Date mTime = new Date(); String mStringTime = mTimeFormat.format(mTime); String fileFolder = "/orders"; String fileName = "/order-"+mStringTime; File filePath = new File("/sdcard"+fileFolder+fileName+".png"); Uri