User login

SlideLock License - how to do?

I've protected my application using the SlideLock. I've used the demo without any modifications other than the key.

I may have misunderstood the inner workings of SlideLock. My impression is that when SAM is installed on a phone, the phone is registered in the SlideMe Database. Later when an app that uses SlideLock requests a license. The API looks in the database and checks if the owner of that phone owns an instance of the app with the specified slidelock key?

But apparently something is wrong. I bought my own app and installed it via the SlideMe app. But it terminates due to no license.

Below is my code. LicenseCheckAsyncTask etc is copied from the SlideLock Demo (http://slideme.org/files/SlideMEDemo_v2_20120503.zip)

Can you help?

/Chris

N.B. The app is here: http://slideme.org/application/stockportfolio-0


private void checkLicence() {
new LicenseCheckAsyncTask(CordovaApp.this, "xxx_the_actual_slidelock_keyxxx") {
public void onPostExecute(License.Rights rights) {
if (rights == null) {
Toast.makeText(CordovaApp.this, "Invalid license! App will now terminate!", Toast.LENGTH_LONG).show();
timer = new Timer();
timerTask = new TimerTask() {
public void run() {
getActivity().finish();
System.exit(0);
}
};
timer.schedule(timerTask, 5000);
}
}
}.execute();
}

Fixed

It seems I'd used an illegal char in the key.

Thanks SlideMe support for identifying the problem.