I want to be able to either move or copy a file from the internal Cache of an android device and put this into permanent storage on the SD Card. This is what I have so far:
public void onClickSaveSecret(View v){
File image = new File(getApplication().getCacheDir() + "/image.png");
File newImage = new File(Environment.getExternalStorageDirectory() + "/image.png");
Toast.makeText(this, "Image Saved", 100).show();
}
1 Answer