getTempFileMD5

public static String getTempFileMD5(Context context, int messageId)

Retrieves the MD5 key for file resumption, used to identify the file being downloaded. The MD5 is generated based on appKey, userId, and messageId.

Return

The save path

Parameters

context

The context

messageId

The message ID


public static String getTempFileMD5(Context context, String tag)

Retrieves the temporary filename for resumable file download, used to identify the file being downloaded. The filename is generated by performing MD5 on the appKey, userId, and the unique identifier tag.

Return

The save path

Parameters

context

The context

tag

The unique identifier for the file