Skip to main content

UDiskCheckUtils

class UDiskCheckUtils

Description: U disk detection The detection principle, after inserting the U disk, the path of the U disk will be written into the mounts file, and it is enough to judge whether there is a U disk path in the file

method isMounted

public static boolean isMounted()

Description: Checking storage mounted or not

Input parameters: None。

Output parameters: true or false

Related parameters: None。

method uDiskName

public static String uDiskName(Context context)

Description: Getting disk name

Input parameters: context: context

Output parameters: diskname as string

Related parameters: None。