User login

SlideLock usage questions

I have a few yes-or-no questions about SlideLock. Any help you can give would be great.

I have read some forum entries, but they only serve to confuse me, so that is why I am asking these questions, and perhaps the answers will help the Devs that follow.

I am attempting to test a completed paid app in Test mode with SlideLock, before I submit it to be reviewed and published by SlideMe.

The app has the slock2.jar in the Libs folder in my project, the example slidelock code has been added to my mainactivity.java file, the permissions have been added to the manifest, my license server is ready, and the images, descriptions, screenshots, etc for the app are ready. SlideLock and it's use are the only things that have me stalled.

I have a key in the Create a mobile application form which matches the SlideLock key in my mainactivity.java file. Will slidelock in Test Mode work with these items alone, considering the setup mentioned just above?

Does slidelock in test mode ONLY work with an app that has the SlideLockDemo in it or a part of it?

Does test mode ONLY work if the SlideLock key equals the demo key in the mainactivity.java file and the create mobile application form? I possibly read this somewhere, but I don't know where.

Can I leave the example slidelock code like it is from the SlideLock page if I want the app users to be able to use the app without having to periodically make an internet connection?

Thanks in advance.

RE: SlideLock usage questions

As described in the SlideLock quick start guide, to test your integration you must use in your Android code the reserved "SlideLockDemo" + check the "Provide a Key and enable SlideLock Test Mode" checkbox.

So to answer your questions:
1)Will slidelock in Test Mode work with these items alone, considering the setup mentioned just above?
- No you need the SlideLockDemo license, e.g. SlideMeLicenseCheckTask(mActivity,"SlideLockDemo")

2) Does slidelock in test mode ONLY work with an app that has the SlideLockDemo in it or a part of it?
- No, test mode is intended to test licenses while your app is unpublished. Once your app is published and test mode disabled you must have a valid license to get the proper License.Rights.

3) Does test mode ONLY work if the SlideLock key equals the demo key in the mainactivity.java file and the create mobile application form?
- No check answer above

The main idea is:
1) use "SlideLockDemo" (String.equals check is performed) license when developing your app
2) Upload your app with the "Provide a Key and enable SlideLock Test Mode" option checked to test the actual key (coded in your app)
3) Disable test mode once ready to publish your app

SlideLock usage questions- continued

Thank you for replying Patrick.

I admit I can be a little thick-headed every now and then, but I am having a little trouble wrapping my mind around this process, and, I have only been programming in Android/Java for about 3 years, so there is a lot that I don't know. That said, please suffer my ignorance, as I may have asked the same questions over again.

From what you said, is this the way we should do things?:

1) Add "SlideMeLicenseCheckTask(mActivity,"SlideLockDemo")" to my code.

2) Use "SlideLockDemo" as the key in the "Create a mobile application" form where it asks for a key.

3) On the "Create a mobile application" form, check the "Provide a Key and enable SlideLock Test Mode" checkbox, with the key being "SlideLockDemo"

4) After I have tested that SlideLock will work with my app, I just replace the "SlideLockDemo" string in the "Create a mobile application" form and in my app, recompile, and re-upload the .apk.

5) Do I need the SlideMEDemo_v2_20120503.zip in addition to the code example from the SlideLock "Quick Start Guide", which I have in my code already?

6) Is there anything inside of the SlideMEDemo_v2_20120503.zip file that I need inside of my app, or do I need the whole thing in my app. If either are the case, please tell me how. I have tried compiling the contents of the SlideMEDemo_v2_20120503.zip as-is, in Eclipse and it didn't work on my devices. Is there something like a Hello World complete app that can be compiled to see it work?

Please reply again.

Thank you very much.

RE: SlideLock usage questions- continued

Questions 1-4 :
- While developing your app, you will use the "SlideLockDemo" license key to (fake) pass license validation.
- When you are ready to upload it, you must change the "SlideLockDemo" with your actual license key. This key (your actual) must be entered in the "SlideLock key:" textbox (in the Edit/Upload page of your application node on SlideME).
- Check the "Provide a Key and enable SlideLock Test Mode." option in the same area as above and upload. Now you can test your actual key and how your app behaves as if you bought your app (test mode)
- When you are ready to release, just uncheck the test mode from your app page and at that point users (yourself included) must have purchased your app in order to properly validate the license.

Questions 5-6 :
The demo app is meant to show some best practice on how to use the SDK. It's not to be used 'as is' but merely as a reference app. So Look at the code and use whatever parts you find useful for your app.