'How to create a activation key for my Android Studio App?

I have a question, so in my application(Android Studio) there will be a textbox, and in this textbox you will have to enter an activation key purchased beforehand. So if anyone has an idea to create and implement à activation key I'm a taker. Good day MajinBlux



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source