You can create a license key based on the unique identifier of the device, the date of the request and your own private key to create a license valid only for a certain date.
Your application will verify that the license key is valid by decrypting the license key with your public key and comparing its expiration date and device identifier. People cannot fake a fake request, since the license key is valid only for the set date and given device identifier.
(hint: read about public key cryptography)
, . , , "getDeviceId()". , , , . .
, / , , . .
, , java/android , . - .