In the paper,we characterize a necessary and sufficient condition which ensures the continuities of the non-centered Hardy-Littlewood maximal function Mf and the centered Hardy-Littlewood maximal function Mcf on Rn.As two applications,we can easily deduce that Mcf and Mf are continuous if f is continuous,and Mf is continuous if f is of local bounded variation on R.