Google Play에서 Android 애플리케이션 (.apk)을 업로드하려고합니다. 유료 애플리케이션 (.apk)에 라이센스 키가 있어야합니다. 필요한 경우 왜 필요합니까?Google Play의 Android 애플리케이션 정보
MyLicenseCheckerCallback은 수퍼 유형 메서드를 구현해야하는 오류를 throw합니다. 그 allow() 인수가 전달해야 정수 인수를 전달해야합니다 몇 가지 도움으로 나를 제안 할 수 있습니다.
private class MyLicenseCheckerCallback implements LicenseCheckerCallback {
@Override
public void allow() {
if (isFinishing()) {
// Don't update UI if Activity is finishing.
return;
}
// Should allow user access.
startMainActivity();
}
@Override
public void applicationError(ApplicationErrorCode errorCode) {
if (isFinishing()) {
// Don't update UI if Activity is finishing.
return;
}
// This is a polite way of saying the developer made a mistake
// while setting up or calling the license checker library.
// Please examine the error code and fix the error.
toast("Error: " + errorCode.name());
startMainActivity();
}
@Override
public void dontAllow() {
if (isFinishing()) {
// Don't update UI if Activity is finishing.
return;
}
// Should not allow access. In most cases, the app should assume
// the user has access unless it encounters this. If it does,
// the app should inform the user of their unlicensed ways
// and then either shut down the app or limit the user to a
// restricted set of features.
// In this example, we show a dialogue that takes the user to Market.
showDialog(0);
}
}
(.apk) 라이센스 키를 추가하는 방법은 무엇입니까? –
hai Gaddiel 내 업데이트 된 답변을 확인하십시오 !!!!!! 1 – AndroidEnthusiastic
친절하게 위 게시를 확인하십시오. –