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

I want to implement an Android scanning two-dimensional code function, how should I operate it? I hope I can offer some ideas.Please!

Can someone help me?