Android licensing application not works?

后端 未结 3 1532
借酒劲吻你
借酒劲吻你 2020-12-18 00:39

I implemented Google License checker by reading the official instructions.

import android.app.Activity;
import android.app.AlertDialog;
import android.conten         


        
3条回答
  •  鱼传尺愫
    2020-12-18 01:01

    The LVL is working on all devices with the accounts You added, not only the main account. It should not work on phones with an account You don´t added to the developer console. Even, the LVL tries to verify Your app with the google LVL -Server, so You need an internet connection, this is ok. If You just want to check the license once, You have to save some data for example in the shared preferences, that the check has already done. So, the next time the app starts, you could check with these saved shared preferences, if the app is just verified. If yes, do no check again, if no, try it again.

    You can set the behavior of checking license in the developer console, You can simulate a normal response, or for example a "not verified" response and so on....

提交回复
热议问题