
Public class MainActivity extends AppCompatActivity ,STORAGE_PERMISSION_CODE) The get method uses SQLite select statement to retrieve the saved image and displaying it in the imageview. Further the image is inserted into the table using SQLiteDatabase, Toast is used to indicate the operation is completed. The save method contain FileInputStream to get file from the defined path and save it to the database. In this step we open MainActivity and add the functions defined over button onclick i.e save or get. Step 4:Open src -> package -> MainActivity.java

In this code simply add imageview and button with onclick functionality. Step 3:Open res -> layout -> activity_main.xml (or) main.xml and add following code:
