As per our public documentation ( http://slideme.org/en/slidelock ) you are required to add permission to use the internet connection in your AndroidManifest.xml :
<uses-permission android:name="android.permission.INTERNET"/>
If this has already happened(please double-check), try a simple test from your device(or emulator) using the native Browser application to connect to http://slideme.com
If both these pre-requisites are ok, please let us know the device Make/Model/API Level and provide us the stack trace of the error for further analysis. Do include any other further information that may be useful for troubleshooting.
Thank you for your help. I found the internet permission was removed accidentally. It works after add it back. However, I found another IllegalArgumentException at myLicense.digest(key). My code likes that:
I found the content of key returned from fetch() is null. Is it because the application is not yet published?
In fact, except checking the licensing via emulator with test code, is more realistic online check available? As you know, it is very important to guarantee the licensing system working properly. Otherwise, I will receive tons of complaints from both users and SlideMe....
Thank you for your help. I found the internet permission was removed accidentally. It works after add it back. However, I found another IllegalArgumentException at myLicense.digest(key). My code likes that:
I found the content of key returned from fetch() is null. Is it because the application is not yet published?
In fact, except checking the licensing via emulator with test code, is more realistic online check available? As you know, it is very important to guarantee the licensing system working properly. Otherwise, I will receive tons of complaints from both users and SlideMe....
Yes, the null or zero-length array return is the root causes for IllegalArgumentException being thrown. Using over-the-air license requires your application to be published for end-to-end functionality. You sanitize the returned value prior to digesting it, or catch the IllegalArgumentException in a try-catch block and consider the returned license invalid - that is.
However, we are almost ready to publish the SlideLock2 demo along with mocked end-to-end functionality and better documentation, which will help you achieve your goal. Stay tuned!
Check your AndroidManifest permission
As per our public documentation ( http://slideme.org/en/slidelock ) you are required to add permission to use the internet connection in your AndroidManifest.xml :
<uses-permission android:name="android.permission.INTERNET"/>
If this has already happened(please double-check), try a simple test from your device(or emulator) using the native Browser application to connect to http://slideme.com
If both these pre-requisites are ok, please let us know the device Make/Model/API Level and provide us the stack trace of the error for further analysis. Do include any other further information that may be useful for troubleshooting.
IllegalArgumentException at myLicense.digest()
Thank you for your help. I found the internet permission was removed accidentally. It works after add it back. However, I found another IllegalArgumentException at myLicense.digest(key). My code likes that:
byte[] key=myLicense.fetch();
myLicense.digest(key);
I found the content of key returned from fetch() is null. Is it because the application is not yet published?
In fact, except checking the licensing via emulator with test code, is more realistic online check available? As you know, it is very important to guarantee the licensing system working properly. Otherwise, I will receive tons of complaints from both users and SlideMe....
IllegalArgumentException at myLicense.digest()
Thank you for your help. I found the internet permission was removed accidentally. It works after add it back. However, I found another IllegalArgumentException at myLicense.digest(key). My code likes that:
byte[] key=myLicense.fetch();
myLicense.digest(key);
I found the content of key returned from fetch() is null. Is it because the application is not yet published?
In fact, except checking the licensing via emulator with test code, is more realistic online check available? As you know, it is very important to guarantee the licensing system working properly. Otherwise, I will receive tons of complaints from both users and SlideMe....
SlideLock2 Demo & Better documentation on its way
Yes, the null or zero-length array return is the root causes for IllegalArgumentException being thrown. Using over-the-air license requires your application to be published for end-to-end functionality. You sanitize the returned value prior to digesting it, or catch the IllegalArgumentException in a try-catch block and consider the returned license invalid - that is.
However, we are almost ready to publish the SlideLock2 demo along with mocked end-to-end functionality and better documentation, which will help you achieve your goal. Stay tuned!