question: public boolean saveToGallery ( String fileName , int quality ) { return saveToGallery ( fileName , "" , "MPAndroidChart-Library Save" , CompressFormat . JPEG , quality ) ; }
target:  Saves the current state of the chart to the gallery as a JPEG image. The filename and compression can be set. 0 == maximum compression, 100 = low compression (high quality). NOTE: Needs permission WRITE_EXTERNAL_STORAGE