getPhotoFile

private fun getPhotoFile(context: Context, name: String): File

Returns a temporary file given the specified file name and a fixed extension of ".jpg" (associated with an image) and stores this in the standard directory for pictures.

This method is intended to return the file corresponding to the photo taken by the user via the device camera.

Return

temporary file given the specified file name and a fixed extension of ".jpg"

Parameters

context

context tied to the activity calling this method

name

file name of the temporary file