I want to make a simple app where the user selects an image from the SD card and then can save their reference in sqlite to be able to be displayed in a listview, but I still do not know how I can do that reference.
I want to make a simple app where the user selects an image from the SD card and then can save their reference in sqlite to be able to be displayed in a listview, but I still do not know how I can do that reference.
In order for you to do this you would first have to do what the user has to do with this folder with the images you want to show. Since you want to make a simple app and a demo, I advise you to do the opposite: 1- Choose several links of images that you want to save in the folder (URLs of sites). 2- Within the application, using AsyncTasks or another mechanism, download the images, create the folder where you want to save the photos in the SD, and save the images the. 3 - Once you confirm that the images are saved, or as you save them in the folder, you can take the Uri ( path to the place where the image is stored ) and save it to your BD. 4 - When you want to show in a list or something, you just need to go to DB, load all Uris and using libraries like Picasso, Volley etc, you can upload the images to an ImageView.
I answered a similar question that is found here: Save images to the database and then show them in a listview