Connexion utilisateur

SlideME: SAM 3.1 Release

This is a minor release that provides sorting options for main catalog entries. There are also a number of bug fixes including: storage locker appearing blank, needing to login twice to storage locker, a possible crash after watching app video, a crash if user scanned a QR code and the catalog info had not been previously stored in SAM's catalog.

Intents

Hello!

What are the intents to use to launch SAM and display a specific package? Please provide a short code example, I want this in my App.

/A

Intents for SAM

Have a look at the 'SlideMEDemo' app under the SlideLock page.

Tried it and failed...

Read through it and still don't get it.

Tried stuff like:
com.slideme.demo.model.interaction.SamInteractor interactor =
new com.slideme.demo.model.interaction.SamInteractor(getPackageManager());
main.this.startActivity(interactor.query("com.slideme.sam.manager", true));

With various plausible inputs as "query" but nothing but exceptions...

I'm looking for something like this:

Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("market://details?id=" + pack));
startActivity(intent);

If there is no android market support I'd like to catch the exception and try something similar for SlideMe.

How do I do it?

Intents

See below.
These id's are based on your own app id's, apparent under each app profile.

3ddA, being your developer id.

Case 1:
sam://search?bundleId=661bdd42-18cd-11e0-925b-00505690390e,7e7a951e-18d1-11e0-925b-00505690390e,3b41e292-18d2-11e0-925b-00505690390e,2ca881fc-1c09-11e0-925b-00505690390e,e195121e-1dd6-11e0-ad29-00505690390e,702825aa-368e-11e0-ad29-00505690390e,3816075c-3690-11e0-ad29-00505690390e

Case 2:
market://search?bundleId=661bdd42-18cd-11e0-925b-00505690390e,7e7a951e-18d1-11e0-925b-00505690390e,3b41e292-18d2-11e0-925b-00505690390e,2ca881fc-1c09-11e0-925b-00505690390e,e195121e-1dd6-11e0-ad29-00505690390e,702825aa-368e-11e0-ad29-00505690390e,3816075c-3690-11e0-ad29-00505690390e

Case 3:
sam://search?q=pub:3ddA

Case 4:
market://search?q=pub:3ddA

case 5:
market://details?id=nu.albert.singlaslant

case 6:
sam://details?id=nu.albert.singlaslant

Note: Case 5 & 6 are not fully supported by back-end at the moment. Expect such in the next few days.

Example:
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("sam://search?bundleId=661bdd42-18cd-11e0-925b-00505690390e,7e7a951e-18d1-11e0-925b-00505690390e,3b41e292-18d2-11e0-925b-00505690390e,2ca881fc-1c09-11e0-925b-00505690390e,e195121e-1dd6-11e0-ad29-00505690390e,702825aa-368e-11e0-ad29-00505690390e,3816075c-3690-11e0-ad29-00505690390e");

startActivity(intent);

Hope this helps.

Intents for SAM

added:

case 5:
market://details?id=nu.albert.singlaslant

case 6:
sam://details?id=nu.albert.singlaslant

Thank you!

Thank you very much for your response. I'll keep my eyes on progress and try "case 6" and use it when it is supported. Thank you for your help and a great site.

/A

Intents for SAM

You can give it a try right away, the back-end now fully supports all these cases. Good luck!