I want to implement an Android scanning two-dimensional code function, how should I operate it?

Can someone help me?