Android Integration

What is the PRYYNT Android SDK?

Our Android SDK allows you to add the PRYYNT button into your app in a few minutes! Your users will then be able to order prints using any of the images in your app or on their device. After clicking the PRYYNT button the PRYYNT UI will open up as an in-app browser. To integrate our SDK please follow the simple steps below.

You can download our SDK, including the full source code, an example app and tests here (4.8MB).

Step 1

The following steps are based on the Eclipse IDE. If you are looking to import the project into Android Studio instead, please refer to the Readme_AndroidStudio.docx included into the downloadable package.

Step 2

Set the following parameters into your app using the Pryynt static class. Make sure that you replace YOUR_APP_KEY with your application API key, which you can get here.

Remember to enclose the API key in quotes, as shown below. Please note that each app or website has its own unique API key, so if you have registered several apps and websites with PRYYNT make sure you use the correct API key for each app or website.

The ISO-639-1 language code, followed by the ISO 3166-1 alpha-2 country code, to be used in the PRYYNT UI. The following languages are currently available:

en-gb - English (British)

setPreferredCurrency

Yes

None

The ISO-4217 currency code that will be used in the PRYYNT UI. All prices will be shown in this currency. The following currencies are currently available:

EUR

GBP

USD

Methods

The 4 methods below are available through the PRYYNT Android SDK.

Upload an image by specifying a public URL. In this case only a URL will be sent to the PRYYNT API. Our servers will request that URL and get the image. This is the ideal method for sending an image to PRYYNT since no image binary data has to be transmitted from the user's device to PRYYNT's servers.