forked from iLanguage/OPrime
-
Notifications
You must be signed in to change notification settings - Fork 2
Storybook Experiment Tutorial
Alexandra Marquis edited this page Sep 13, 2013
·
15 revisions
This tutorial lists the steps to create a new storybook app using a CSV file and an R script.
Researchers who wish to collect video/audio data using image and audio stimuli.
A screencast of the following steps can be viewed at http://www.youtube.com/watch?v=DJrwBhu0AO0.
- Download the tutorial (clone the iLanguage/OPrime git repository).
- Install R (http://www.r-project.org/)and ADT Eclipse (http://developer.android.com/sdk/index.html).
- Navigate to the stimuli folder in the OPrime-Android-Tutorial project folder.
- Save image and audio files into the stimuli folder. File names must not have spaces!
- Edit the csv file (sample_stimuli.csv) with the correct file names in the corresponding image and audio columns. NB: the order of the files in the csv determines the order in which they will appear in the app. Names in csv must be identical to file names (including case and file extensions).
- Save the csv file with a new name to the stimuli folder. Take note of the new name!
- Open the create_new_stimuli.R file in a text editor. In the first line, change the file name from "sample_stimuli.csv" to the name of your saved csv file. Keep the file open for later.
- Open R. Set working directory to the stimuli folder. Ex:
setwd("/home/USER/git/OPrime/OPrime-Android-Tutorial/stimuli")
- Double-check new working directory with
getwd()
- Copy and paste all code from create_new_stimuli.R (from the text editor) into R. Press Enter.
- Open Eclipse. If opening Eclipse for the first time, click File --> New --> Project. Select Android --> Android Project from Existing Code. Click Next. Click Browse and select the OPrime directory. Click Finish.
- Right-click on OPrimeStorybookExperimentTutorial and select Run as... --> Android Application. Make sure to have an Android device connected to your computer.
If Eclipse reports errors when trying to run as Android Application:
- Double-check file names to make sure they match the names in the csv file.
- Double-check the name of the csv file in the R code (create_new_stimuli.R).
- Make sure you are in the correct working directory in R (the OPrime/OPrime-Android-Tutorial/stimuli folder).
A storybook app for Android devices which displays images with corresponding audio (and a page-turning animation), and which records audio/video data.
Make different app versions?