Clone Gooten SDK project from this repository
Import Gooten SDK project File -> Import -> General -> Existing Projects into Workspace*
Mark Gooten SDK as library project Select Gooten SDK project -> Properties -> Android -> Make sure that “Is Library” is ticked
Add Gooten SDK dependencies Libraries will have to be added manually when developing with Eclipse
(In Android Studio, these dependencies are automatically resolved by Gradle dependency management mechanism).
To make your life easier we have bundled these libraries together. You can download this archive and extract the files to the
libs folder of the Gooten SDK.
Android v4 Support Library is also required. Chances are that you already have this library included in your project. If not, you can find instructions about including support libraries on this link.
Add Gooten SDK library to your project Select your project -> Properties -> Android -> Add… -> Choose Gooten SDK library
|In your project, open **your_app||AndroidManifest.xml** and configure it accordingly:|
Set Android SDK version
Gooten SDK supports Android 4.0+ (API level 14 and higher). The
<uses-sdk> node of your manifest should look like this:
Add fallowing permissions:
Activities and Services
Add following activities:
android:largeHeap="true" attribute is required to be set on
Create `fonts` folder in your project's `assets` dir. Then copy fonts from [this](https://www.dropbox.com/s/6s60ldvxlo6q6ta/fonts.zip?dl=1) archive to `fonts` folder.
Here is example for launching Gooten SDK with minimal configuration.
After SDK has launches successfully (using “Quick Launch” code from above) you should see screen similar as on following screenshot:
Using defaul products settings – If you would like to use all available products and SKUs with default pricing you can configure SDK by setting following property of PIOConfig object:
Testing orders – If you would like to test placing orders without paying real money you can configure SDK by setting following property of PIOConfig object:
Passing in images – SDK allows you to set predefined list of images that will be available to the user. To do so you will need to set list of URIs of predefined images and set/add
PreselectedPhotoSource to the list of available photo sources.