开发者

Android License Server Check always times out

I'm trying to implemen开发者_如何学编程t The Android LicenseChecker in my app, and I've followed the instructions almost verbatim from the developer site. Everything seems hooked up correctly, but every single time I get the "Check timed out." message.

I increased the timeout value to 30 seconds, I'm logged into my device (which has the market app installed) with my publisher account login gmail address. I set the test response to Licensed. I saved (but didn't publish) a sample app to test with. When that didn't work, I tried using an app that is already published and just rebuilding the apk locally to include the LVL implementation... what am I doing wrong?

I definitely have 3g connectivity. I can browse the web on the device and other connected apps are working correctly. Please help.


This may seem like a dumb question, so apologies if that's the case, but did you add Internet access to your app in the manifest file?

I only ask because I was stuck scratching my head quite awhile last night after having a similar problem, only to find that I had entirely forgot to set my apps permissions. D'OH!


Use android.permission.ACCESS_NETWORK_STATE and see what your application is reporting to you about your network connectivity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜