Reading App Builder 02 Building Apps PDF
Reading App Builder 02 Building Apps PDF
You are free to print this manual for personal use and for training workshops.
2
Contents
4. Fonts .................................................................................................................. 13
4.1. What is 'Grandroid', referred to on the Fonts setup page? ............................... 13
4.2. When do I need to include the Grandroid libraries? .......................................... 13
5. Audio ................................................................................................................. 14
5.1. How can I associate audio files with the text? ................................................... 14
5.2. How do I create the audio timing files for audio-text synchronization? ............ 15
5.3. How do I distribute the audio files with the app? .............................................. 15
5.4. How are the timing files distributed for the app? .............................................. 17
5.5. How can I use audio clips in the app?................................................................. 18
3
9. Picture Story Books ............................................................................................. 24
9.1. How do I define a picture story book? ............................................................... 25
9.2. What do picture story books in Word documents look like? ............................. 25
9.3. What do picture story books in SFM format text files look like? ....................... 27
9.4. Where do the pictures go? ................................................................................. 28
9.5. How can I get the pictures to move when the audio is playing? ....................... 29
9.6. What about font and font size? .......................................................................... 29
9.7. What audio timing labels are used? ................................................................... 30
9.8. How can I add background music when the audio is playing? ........................... 30
9.9. How can I record the audio files? ....................................................................... 31
12. Analytics............................................................................................................. 37
12.1. Firebase Analytics ............................................................................................... 38
12.2. Amplitude Analytics ............................................................................................ 39
12.3. Amazon Mobile Analytics ................................................................................... 39
12.4. Google Analytics ................................................................................................. 40
12.5. S3 Digest Analytics .............................................................................................. 40
12.6. Data Payload for S3 Digest Analytics .................................................................. 41
4
1. Preparing content for your app
Before you build an app with Reading App Builder (RAB), you need to get your content
(text, images and audio) into formats that RAB can handle.
2. Bloom books
RAB can import text, images and audio files from books created with Bloom.
To find out more about Bloom, please see: http://bloomlibrary.org
5
4. HTML files (.html)
RAB can display HTML files and make use of associated stylesheets (CSS) and
images. Audio-text synchronization is not supported yet with this format.
2. Click New App on the toolbar. The New App wizard will appear.
6
Click Next to move to the next page.
5. On the page of the wizard entitled Book Type, choose the type of books you
want to add. See section 1 of this document for the formats RAB can handle.
6. On the Books or Bloom Books page, select the books you want to add to the
app.
7. On the Contents Menu page, choose whether or not you want to have items
created for each book in the Contents menu.
8. On the page of the wizard entitled Fonts, choose the font. You can either select
from the given list of fonts or specify a different TrueType font file.
9. On the page of the wizard entitled Grandroid, choose whether or not to enable
Grandroid font rendering.
In general, you will need Grandroid if you have a non-Roman script (e.g. Arabic,
Thai, Hindi, etc.), or if you use a Roman script with combining diacritics. For more
details, please refer to section 4 of this manual.
10. On the page of the wizard titled Color Scheme, choose the color scheme for the
app. The color you choose is the one that will be used for the main app bar.
Individual colors for text, titles, links, backgrounds, etc. can be customised later.
7
Click Next to move to the next page.
11. On the page of the wizard entitled Icon, choose the application launcher icon.
You can select one of the images in the table or if you have your own PNG image
files for the icon, click Browse and select them.
12. On the pages of the wizard entitled Copyright and Licensing, specify the
copyright and licensing information that you would like to appear on the About
box in the app. This includes the copyright owner for the text. Use the drop-
down list to select from a list of common rights holders or type in a different
one.
If you will have audio in your app, also specify the rights holder to the audio
recording, especially if they are different from the text rights holder.
You can also specify details the license, such as Creative Commons.
If you don’t know what to put in these fields, please ask the publishing
department of your organisation for advice. They will want to make sure you get
this right and do not simply make a guess as to what to include.
13. On the page of the wizard entitled Signing, you need to specify the keystore and
alias to use to sign the app. An app must be signed in this way so that it can
installed on an Android device.
If you do not already have a keystore file (which you are unlikely to have if this is
your first time using the program):
i. Click Create New KeyStore Wizard.
ii. Enter a new filename for the keystore, such as “test” or something like
that. Specify a password.
iv. Enter an alias name for a key to create within your new keystore, such as
“testkey”. Specify a password and enter at least one piece of information
in the fields below.
8
14. Back on the Signing page of the New App wizard, you need to specify the
keystore password, select the alias and enter the alias password (just as you
entered them in the step above).
15. On the page of the wizard entitled Project, you can enter modify the project
name and add an optional description of the app project. Neither of these will
be visible to the user of your app. They are just for your own use and might help
you distinguish between multiple app projects.
Click Next to continue. The New App wizard will close and the app definition will
be added to the tree view on the left of the screen.
16. Take a look at each of the app configuration pages by selecting them in the tree
view on the left. Look in each of the tabs on each page to verify that you have
the settings you want. You can always go back to them later to change them if
you find you need to make modifications to fonts, colors, styles, etc.
17. When you have finished configuring the app, click on Build App.
If something isn’t configured correctly for the build to work, you will be notified
of this.
18. A black command box will appear. Wait about a minute while the app is
compiled.
The first time the build process is run, the compiler needs to connect to the
internet to download some files. After this, subsequent app builds will not
require internet access. See Tools ➢ Settings… ➢ Build Settings to turn on
offline mode after the first app build.
19. If the build succeeds, you will have a new apk file – the installation file for an
app. Copy this .apk file onto your phone or tablet and click on it to install it.
This can be done automatically. See Tools ➢ Settings… ➢ Build Settings to install
and launch the app on the attached device when the build finishes.
9
3. App Creation Basics
3.1. How should I choose the app package name?
The standard for an app package name is to begin with the reversed web address of the
publishing organisation, e.g. if it is SIL, the package name could begin with:
org.sil
and will be followed by something identifying the language and type of publication
(Stories, Proverbs, Literacy, etc.), e.g.
org.sil.xyz.stories
If you work for a publishing organisation, you might have standards to follow for
package names, so please contact your digital publications coordinator for advice on
this.
Once you publish your app on an app store, you cannot change its package name later if
you want users to continue to receive updates. The package name uniquely identifies
the app in the Android world. Those who install the app will be able to find its package
name on their device. It will also appear in the web address for your app if you make it
available on Google Play.
If you are building apps for test purposes on your devices, you can use a package name
beginning with com.example, e.g.
com.example.test.app123
3.2. Do I have to create a new keystore for each app, or can I reuse the same keystore
for several of my apps?
You can use the same keystore and key alias for all or several of your apps.
3.3. I don’t like the name “Reading App”. Have you thought of calling the app
something else?
The program that allows you to define and build apps is called “Reading App Builder”
but the app itself doesn’t have a name. It is up to you to choose the names for the apps
you build.
10
You won't see 'Reading App' anywhere in the apps you create, so feel free to use an
appropriate name in an international, national or local language.
If you want to be able to build your first app without needing internet access, it is
possible to copy the Gradle cache files from another computer that has already
downloaded them. This will only work, however, if the absolute path to the files is
exactly the same on the computer from which the files are taken as on your computer,
e.g. “C:\gradle” on computer A and “C:\gradle” on computer B. It will not work if you
have “C:\Users\John\.gradle” or computer A and “C:\Users\Jenny\.gradle” on computer
B (which is the default Gradle cache folder).
So, on computer A, to get the cache files to distribute:
1. Go to Tools > Settings > Build Settings > Gradle Cache Folder.
2. Enter “C:\gradle” and OK.
3. Build an app. The Gradle cache files will be downloaded to C:\gradle.
Then, on computer B:
4. Copy the C:\gradle folder from computer A to C:\gradle.
5. Go to Tools > Settings > Build Settings > Gradle Cache Folder.
6. Enter “C:\gradle” and OK.
Option Description
-new Create a new app project
-load <project> Load an existing app project
-build Build app project (use with either -new or -load)
-no-save Do not save changes to app (use with -load)
11
-? Show command line help
-vc <integer> Set version code, e.g. 1, 2, 3, or +1 to increment the current version code
by 1.
-vn <string> Set version name, e.g. 1.0, 2.1.4, or use +1, +0.1, +0.0.1 to increment the
current value.
12
Examples:
rab -new -n \"My App\" -p com.example.myapp -b MyBookBundle.zip
-f \"Charis SIL Compact\" -i keys.txt –build
4. Fonts
4.1. What is 'Grandroid', referred to on the Fonts setup page?
Grandroid (Graphite for Android) is a collection of native libraries
from SIL Non-Roman Script Initiative (NRSI). They can be packaged
within the app, enabling Android devices to make use of Graphite
font rendering features.
Grandroid is not only about Graphite. It also fixes a few of the font display problems in
recent versions of Android.
Please note that if a font displays correctly on your own phone without Grandroid, it
does not mean it will display correctly on all phones and Android versions. As well as
testing your app on the latest version of Android, it would be a good idea to test it on a
phone running Android 4.2 or 4.3 (which have known font display problems) and the
older 2.3 (which has limited built-in complex font support).
13
You are unlikely to need to use Grandroid:
• If you have a simple Roman script which does not make use of combining
diacritics. So that means a-z, plus other IPA characters such as ɛ, ɔ, ɲ, ŋ, etc. as
long as they are not being combined with tone marks or accents.
If you try and display a complex script without Grandroid, you might find the following
problems:
• Lack of Right-to-Left support - on Android 2.3 (Gingerbread).
• The system font being used rather than the font you specify - on Android 4.2 and
4.3 (Jelly Bean).
• Lines with combining diacritics being displayed in the system font, while other
lines are being displayed correctly - on Android 4.2 and 4.3 (Jelly Bean).
• A blank screen where there should be text - on Android 4.2 and 4.3 (Jelly Bean).
If you want to display complex fonts, including Right-to-Left scripts, on Android 2.3
(Gingerbread), it helps if the font is Graphite-enabled since Android 2.3 has limited
handling of OpenType for font rendering.
5. Audio
5.1. How can I associate audio files with the text?
Reading App Builder allows you to use two different types of audio file:
1. Audio files that correspond to a page of text in the app, e.g. the audio recording
of a chapter of a book or the text in a picture story book. These can be linked to
timing files to enable synchronised highlighting of the text when the audio is
playing.
2. Short audio clips which are played when the user taps a linked word, phrase or
image in the app.
The first of these types of file is the most common in RAB apps and the instructions in
this section will refer to these. For more information on using audio clips, please see
section 5.5.
To associate audio with pages of text in your app, you will need one audio file per
chapter. For example, if you have a book ‘History of Mali’ with 20 chapters, you will
need 20 audio files, one for each chapter.
If you have several audio files per chapter or several chapters in one audio file, you will
need to concatenate or split your files to create files of one chapter each before RAB
can use them. This could be done in Audacity.
14
For picture story books, you can choose whether you have one audio file per page, or a
single audio file for the whole book.
RAB will try to match the audio files to the chapters in the book(s), so you should use
audio filenames that will make it obvious which file corresponds to which book and
chapter.
The optional timing files can be added on the same page: one timing file per audio file.
5.2. How do I create the audio timing files for audio-text synchronization?
There are two possibilities:
1. Create the timing files manually using the Audacity audio editing program. For
instructions, please refer to the document Using Audacity for Audio-Text
Synchronization.
2. Automate the creation of the timing files using aeneas. For instructions, please
refer to the document Using aeneas for Audio-Text Synchronization.
To specify the audio source(s) in Reading App Builder, you need to visit the following
two pages:
1. The Audio page, which defines the available audio sources.
This page can be found in the apps tree view just under Analytics on the top
level of app pages. You can modify, add and remove audio sources here.
2. The Audio Files tab for a book or book collection, which lists the audio files with
their corresponding audio source.
To change the audio source for a file or files, select the rows you want to change
and select Change Audio Source.
15
1. Assets
The audio files will be packaged inside the apk file for the app. This is the easiest
method for a few files (e.g. one book) and requires no permissions. But be beware that
the apk will get very large if you have several books of audio. The maximum size of an
apk that can be uploaded to the Google Play store is 100 MB.
2. External Folder
No audio files are packaged within the app, so the apk is small. The app will look in a
specified SD card folder to find the audio files it needs. If you are distributing the app via
SD card, you include the folder of audio files on the SD card together with the apk. This
method requires the 'Read external storage' permission but not internet access.
You can place the audio files inside sub-folders and sub-sub-folders in the specified SD
card folder, using any folder names you choose. Alternatively, you can place all the
audio files in a single folder without using any sub folders.
If the app does not find audio files in the specified folder or its sub-folders, it will also
search the other folders on the device to see if it can find them there. For example, if
the specified folder name is ‘Audio 123’ but the files are located in the ‘Audio 456’
folder instead, the app should find them. Once it has found a folder with a needed
audio file, it will keep a note of it so it knows where to look next time.
3. Internet Download
Like method 2, no audio files are packaged within the app, so the apk is small. The app
will look in a specified SD card folder to find the audio files it needs. If it doesn't find
them there, it will look in all the other folders on the device. If it still cannot find them,
the app can download the files one by one when it needs them from a website of your
choice. This method requires the 'Read external storage', 'Write external storage',
'Connection state' and 'Internet' permissions.
Audio filenames
The internet download works best if your audio filenames do not include any spaces. A
filename of the form “LNG-Story-01.mp3” is better than “LNG Story 01.mp3”.
Http or https
The download manager in Android 2.3 (Gingerbread) cannot handle downloads from
secure https addresses, so if you want to support these phones, use an http:// address
instead of https://.
16
Audio file hosting
Recommended storage locations for the files on the internet include:
1. A language-specific website
If you have a language-specific website for making resources available for
download, you could place the audio files in a folder on the website.
For example, if your website is called ‘www.ourlanguage.org’, you could upload
the audio files to a folder called ‘audio’. The http address for your audio files
would then be: http://www.ourlanguage.org/audio
Your website administrator should be able to help you do this.
2. Internet Archive
Archive.org (http://www.archive.org) is a non-profit library where you can
create a free account and upload your audio files. As well as being accessible to
your app, the files will be freely available on the archive.org website for users to
view and download.
5.4. How are the timing files distributed for the app?
If you have timing files for audio-text synchronisation, they are always packaged in the
app assets whatever the audio source setting chosen in section 5.3 above. They are not
downloaded from anywhere.
If timing files are not available when the app is compiled and are subsequently created
by someone who isn't building the app (such as a volunteer), they can be placed in the
external folder for testing. For more details, please see section 6.4 in the document
Using Audacity for Audio-Text Synchronization, which answers the question “I’d like to
give someone else the task of creating timing files. Is there any way of them testing
these without needing to know how to build the app?”
17
5.5. How can I use audio clips in the app?
Audio clips are short audio files which are played when the user taps a linked word,
phrase or image in the app.
1. Select the Audio page for the app, and go to the Audio Clips tab.
2. Click Add Audio Clips… and select the audio file you want to add.
Specify the audio filename without a path, e.g. “word1.mp3” rather than
“C:\My clips\word1.mp3”.
6. About Page
Every app must have an About page, which is displayed to the user when they select
About from the bottom of the app’s navigation drawer menu.
1. Select About in the apps tree view on the left of the screen.
18
3. Select the Viewer tab to see how the text will appear in the app.
Bold text Surround the text you want in bold with <b> and </b> markers.
Example: <b>This is in bold</b>
Italic text Surround the text you want in bold with <i> and </i> markers.
Example: <i>This is in italics</i>
Underlined text Surround the text you want in bold with <u> and </u> markers.
Example: <u>This is underlined</u>
Website links Use the format [text](url), where ‘text’ is the text to display and
‘url’ is the web address.
Example: Here is our [website](http://www.example.com)
Email links Use the format [text](mailto:address), where ‘text’ is the text to
display and ‘mailto:address’ contains the email address.
Example: Contact us by [email](mailto:[email protected])
Phone numbers Use the format [text](tel:number), where ‘text’ is the text to
display and ‘tel:number’ contains the number to call.
Example: Our number is [012-345-678](tel:012345678)
19
Image To add an image, first add the image file to the app illustrations
(Images ➢ Illustrations) and use the following HTML code:
<img src="image1.jpg"/>
Left, right or To align text or images, surround them with the following <div>
centered markers:
alignment
<div align="center">This is centered</div>
To center an image:
Fonts To apply specific fonts to text, first make sure that the fonts are
specified on the Fonts page. Then use the following syntax:
App name To display the app name, use the variable %app-name%
App version To display the app version, use the variable %version-name%
20
7. Navigation Drawer
You can customise the image that appears at the top of the navigation drawer. It can be
a photo, your organisation’s logo or any relevant graphic design.
21
8. Contents Menu
When the user launches the app you will normally want to display a contents menu,
giving them an easy way to select books in the app. The contents menu contains a list of
images and titles.
1. Select the Contents Menu page in the Apps tree view on the left of the screen.
2. Ensure that the first tab, Contents Items and Screens, is visible.
3. For each contents menu item you want to add, click the Add Item… button and
follow the wizard to add the item to the screen. You will need to specify:
22
4. You can reorder the items on the screen by selecting rows in the table and
dragging up or down.
6. Select the Viewer tab to see how the contents menu will appear in the app.
1. Click the Add Screen… button and give the screen a name.
2. Click the Add Item… button and specify its target to be Another menu screen
and select the name of your new screen. This will mean that when the user taps
on this item in the first screen they will be taken to your new screen.
23
4. You can move items between screens by dragging item rows up or down.
A picture story book is a book with a picture at the top of each page and a few
sentences of text underneath. In the app, the picture will stay at the top of the screen
and the text will scroll.
Audio-text highlighting works as for other kinds of book, and when the audio reaches
the end of a page the app will move to the next page of the story.
When the device screen is in landscape orientation, the picture will be displayed to take
up the whole screen. If you specify a timing file alongside the audio file, each phrase will
be displayed as a subtitle over the image.
24
You can choose to associate a single audio file with the whole picture story book, or one
audio file per page.
25
2. Insert a picture at the top of the first page.
3. Add the story text for this page below the image.
4. Insert a page break after the text using CTRL+Enter, or Insert ➢ Page Break.
5. Insert a picture at the top of the second page and place the story text under it.
6. Insert a page break after the text using CTRL+Enter, or Insert ➢ Page Break.
7. Continue adding additional pages in this way.
8. Save the document in .docx format.
You can add images to the document in .jpeg, .jpg, .png, .tif or .gif formats and
Microsoft Word will convert them automatically to the format recognised by Reading
App Builder.
Pictures are not compressed within the app at present, so if you have large image files it
is best to resize them. You can do this either before adding them to the document or
within Word itself:
1. Select one of the images in Word.
26
3. Select All Pictures in document.
5. Click OK.
9.3. What do picture story books in SFM format text files look like?
They start with an id of your choice:
\id CHICKEN
and a title:
\page 1
\img chicken-01.jpg
and then the text for that page, using USFM markers like \p for indented paragraphs or
\m for unindented paragraphs:
27
Here is an example:1
------------------------------------
\id CHICKEN
\toc2 Chicken and Millipede
\page 1
\img chicken-01.jpg
\m Chicken and Millipede were friends. But they were always competing with each other. One day they
decided to play football to see who the best player was.
\page 2
\img chicken-02.jpg
\m They went to the football field and started their game. Chicken was fast, but Millipede was faster.
Chicken kicked far, but Millipede kicked further. Chicken started to feel grumpy.
\page 3
\img chicken-03.jpg
\m They decided to play a penalty shoot-out. First Millipede was goal keeper. Chicken scored only one
goal.
\m Then it was the chicken’s turn to defend the goal.
\page 4
\img chicken-04.jpg
\m Millipede kicked the ball and scored. Millipede dribbled the ball and scored. Millipede headed the ball
and scored. Millipede scored five goals.
etc.
The book files must be plain text files. If you have Unicode characters, the text files
should use UTF-8 encoding. To create a text file in Windows, use Notepad. To create a
text file on a Mac, use TextEdit, remembering to choose Plain text files in the
preferences because otherwise the default file type is RTF (which contains a lot of
additional formatting codes).
If you have defined the picture story book as an SFM text file, you need to add the
images to Reading App Builder separately. Do this on the Images ➢ Illustrations page.
You can use either PNG or JPG files. Try and make them as small as possible without
compromising image quality. This will keep your app size small and reduce page load
time.
1
Chicken and Millipede, Copyright © 2014, African Storybook Initiative. Creative Commons.
28
9.5. How can I get the pictures to move when the audio is playing?
You can add pan and zoom effects to the images when the audio is playing. To specify
the motion:
1. Go to the Story Pages tab for the book.
2. Select an image at the top of the page.
3. Select the Motion tab below the images.
4. Select Specify the start and end positions.
5. Drag and resize the start and end rectangles in the images to specify the start
and end positions.
6. Do this for each image in the book.
If you have a small amount of text per picture, it is best to use a larger font size by
default. You can change this within Reading App Builder on the Styles ➢ Text Styles
page by modifying the font-size property of the body style.
29
9.7. What audio timing labels are used?
If you have one audio file for the whole book, timing labels are of the form:
If you have one audio file per page, timing labels are of the form:
To help with the creation of the timing files, generate phrase lists on the Audio
Synchronization page for the book, or use aeneas to automate the synchronization
process.
9.8. How can I add background music when the audio is playing?
You can add background music and sound effects behind the audio narration track. To
do this:
1. Go to the Story Pages tab for the book.
2. Select the first image at the top of the page.
3. Select the Background Music tab below the images.
4. Select Play this audio file as background music.
5. Click Select File… and choose the background music audio file.
30
6. Drag the slider to modify the volume of the background music.
7. Select each of the following pages in the book and specify whether to Continue
playing the background music from the previous page, whether to play a
different background music track or whether to stop playing any background
music.
31
See 10.2 and 10.3 for a description of these formats.
Audio can be added with audio-text synchronization so that each line of the song is
highlighted as it is sung.
3. For each song, place the song number on a line by itself before its corresponding
title and lyrics.
Style Use
c Chapter number
32
Style Use
s Song title
To create a style:
a. Select the line/paragraph of text that corresponds to this style, i.e. if you
are creating the style ‘c’, select one of the lines with a song number. If
you are creating the style ‘q1’, select a line of the song lyrics.
d. Type the style name into the dialog box and press OK.
5. Apply the above styles to all the chapter numbers, song titles and the lines of the
song lyrics.
To apply a style:
33
a. Select the line/paragraph to which you want to apply the style.
Tip: The F4 key can be useful as you apply the styles to repeat your previous
action.
34
6. Save the document in .docx format.
10.3. What do song books in SFM format text files look like?
They start with an id of your choice:
\id SONGS
and a title:
Each song begins with the \c marker and the number of the song:
\c 1
The marker \q (or \q1) is used for line of the song lyrics and \q2 for indented lines,
such as for a chorus.
\id SONGS
\toc2 Song Book
\c 1
\s My Favorite Things
35
\c 2
\s Edelweiss
If you are used to using Paratext, these SFM codes will be familiar since they are how
you mark up poetry.
The SFM songbook file must be a plain text file. If you have Unicode characters, the text
files should use UTF-8 encoding. To create a text file in Windows, use Notepad. To
create a text file on a Mac, use TextEdit, remembering to choose Plain text files in the
preferences because otherwise the default file type is RTF (which contains a lot of
additional formatting codes).
To help with the creation of the timing files, generate phrase lists on the Audio
Synchronization page for the book.
Automated synchronization is unlikely to work for songs, so you will need to use the
manual tagging method using Audacity and Timing Labels Assistant. Please see the
document Using Audacity for Audio Text Synchronization for instructions.
36
11. Sharing Apps
A Share App item can be added to the app navigation drawer to enable users to share
the app with others. You can configure this on the Features ➢ Sharing page.
There are two ways of sharing the app. You can choose to allow the user to use one or
both of them:
• Share Link to App on Google Play: this option allows the user to send someone
the link to the app on the Google Play store, e.g. by email or social media. You
should enable this only if the app has been published on Google Play.
• Share App Installer File: this option allows the user to share the APK file with
another device, e.g. by Bluetooth, Wifi transfer or email. This option is especially
useful in contexts where not everyone has easy internet access and where you
want to promote offline app sharing.
12. Analytics
If you enable Analytics, the app will connect to the internet from time to time to send
app usage information to one or more analytics accounts. This will give you an idea of
the extent to which people are interacting with the app.
37
The information sent will include the model of the device (such as ‘Google Nexus 7’,
‘Samsung Galaxy S4’), the Android version (such as ‘4.2’), the mobile network provider
and an approximate location (city/country). No personal information is included.
You can configure your app to send usage data to one or more of the following analytics
engines:
To set up analytics:
1. Go to the Analytics page for the app.
2. Select Enable Analytics.
3. Click Add Analytics Account…
4. Choose an account type and enter your analytics account information.
• For Firebase Analytics, you will need a google-services.json configuration
file for your account.
• For Amplitude Analytics, you will need an API Key
• For Amazon Mobile Analytics, you will need an App ID and an Identity
Pool ID.
• For S3 Digest Analytics, you will need an S3 Bucket ID and an Identity Pool
ID.
• For Google Analytics, you will need a Tracking ID.
38
1. Click SIGN IN at the top right of the screen and sign in with Google account.
2. Click GO TO CONSOLE at the top right of the screen.
3. Click Add project in the middle of the screen, enter a Project name and click
CREATE PROJECT. The project can contain multiple apps.
4. Click Add Firebase to your Android app (or Android icon), enter the Android
package name which can be found on the App ➢ Package page in Reading App
Builder, and click REGISTER APP.
5. Click Download google-services.json button to save the configuration file to
your Downloads folder.
6. Click Skip to the console link to complete.
You will have downloaded a google-services.json configuration file which you should
import into Reading App Builder.
39
3. Click Start your first project, enter a project name, check Allow AWS Mobile
Hub to administer resources on my behalf, and click Create project.
4. Analytics are enabled by default. Click on the project name at the top left to view
the dashboard.
5. Click Add new app, click Android, and click Add.
6. Click Download Cloud Config. Open the downloaded awsconfiguration.json file.
Copy the AppId value inside the quotes into the App ID field in Reading App
Builder. Copy the PoolId value inside the quotes into the Identity Pool ID field in
Reading App Builder.
https://analytics.google.com
You will be given a tracking id, of the form UA-1234567-1 which you should copy into
the Tracking ID field in Reading App Builder.
40
b. On the Set properties and Set permissions steps, use the defaults and
click Next.
c. Review the configuration and click Create bucket.
d. Copy the Bucket name into the S3 Bucket ID field in Reading App Builder.
41
Files are uploaded to the S3 Bucket and in a sub-folder based on the format (e.g. the
current format is f1) and stored with a unique filename using a randomly generated
GUID as the basename. We are working to package a Splunk configuration so that you
can deploy your own server to analyze the data.
S3 Digest Analytics uses a JSON payload format. A complete sample data payload is
below:
{"startTime":"20180306T0835Z","period":1440,"id":"12db7e3f-93d9-4370-b12b-
fe048804e4f5","package":"org.sil.picturebooks.cuk","version_name":"1.0.1",
"sessions":1,"sessionMins":21,"shares":3}
13. EPUB
As well as building a smartphone app, you can create e-books in EPUB format. EPUB
documents are readable by a number of e-book readers on Windows, Mac, iOS and
Android platforms.
If you have timing files for your audio, the e-books can contain ‘Read Aloud’ text-audio
synchronization. These are readable by a few EPUB 3 readers, such as the Readium
extension for Chrome (http://readium.org) and the Gitden Reader apps for Android and
iOS (http://gitden.com).
2. Choose a cover design. See the Cover tab. If you are creating separate e-books
for each book, a different cover image can be specified for each book on the
Cover tab of each individual Book page.
42
3. Click the button Create EPUB Document(s).
The generated EPUB documents will be saved in the default EPUB output folder.
See Tools ➢ Settings… ➢ Default Folders.
Before you distribute your app, please use the App Publishing Checklist (available via the
Help menu in RAB or on the RAB website) to verify that it is ready to publish.
Apps built with Reading App Builder can be published on the Google Play store,
distributed by memory card, shared by Bluetooth or Wi-Fi transfer, uploaded to
43
websites, or sent out by email. For more information, please see the user manual
Distributing Apps (available via the Help menu in RAB or on the RAB website).
44