The relativistic mean field theory with the Greens function method is taken to study the single-particle resonant states. Different from our previous work [Phys.Rev.C 90,054321(2014)], the resonant states are identified by searching for the poles of Greens function or the extremes of the density of states. This new approach is very effective for all kinds of resonant states, no matter it is broad or narrow. The dependence on the space size for the resonant energies, widths, and the density distributions in the coordinate space has been checked and it is found very stable. Taking $^{120}$Sn as an example, four new broad resonant states $2g_{7/2}$, $2g_{9/2}$, $2h_{11/2}$ and $1j_{13/2}$ are observed, and also the accuracy for the width of the very narrow resonant state $1h_{9/2}$ is highly improved to be $1times 10^{-8}$ MeV. Besides, our results are very close to those by the complex momentum representation method and the complex scaling method.