The SDK exposes setter methods to set custom tutorial videos
1. Creating a “raw” folder
The SDK allows you to set your own videos for the measurement tutorials.
The videos you provide must be in the “raw” folder in your app’s “res” folder.
1.1. First, you must create the “raw” folder in your app’s “res” folder (if it doesn’t exist), just right-click on “res” –> New –> Android Resource Directory, as shown below:
1.2. Next, the following dialog will be shown:
1.3. In “Resource Type”, choose ‘raw’ and the “Directory Name” will be updated as well.
1.4. Click “OK” and continue.
2. Setting your custom videos
To set your own videos, you must use the MySizeIDSDK class utility setter methods.
There is a method for each measurement type, for both male and female (total of 8 setter methods).
2.1. Add your video file\s to the res/raw folder in your app.
2.2. Before you call MySizeIDSDK.getInstance().start() method, call the required setter method and pass it the video name as a string.
Suppose you have a male version of the video for hips measurement type, then just call the following method:
3. Implementation example
4. Important notes
3.2. The SDK will play the tutorial videos according to the existence of the video of the specific measurement type (MySizeSDK imported videos or your custom videos).
3.3. If there are no videos in your project at all, MySizeSDK won’t play any videos.