This android app uses a Bible parses and the VTD-XML library to allow a user to request a Bible passage and have it displayed in an OpenSpritz reader.
This repo contains the following:
- OpenSpritz Android by David Brodsky : https://github.com/OnlyInAmerica/OpenSpritz-Android
- Bible Passage Reference Parser by Openbible.info : https://github.com/openbibleinfo/Bible-Passage-Reference-Parser
- VTD-XML version 2.11 : http://sourceforge.net/projects/vtd-xml/files/vtd-xml
You will also need to use the following as a library:
- appcompat_v7 which is used for backwards compatibility. My version of appcompact_v7 can be downloaded here: https://app.box.com/s/s89gnzlhd80t4e1dipcw
How it works
As this app pretty much strings a few existing modules together, and since I only make android apps as a hobby, this program is a bit convoluted.
All the real work gets done in MainActivity.java, which really contains two fragments. One is the download manager (
BibleListFragment), the other is the OpenSpritz reader (
PlaceholderFragment- I know quite an original name).
Once the user enters in a passage and presses the button (
In this task the result is then adjusted so the Bible book name into a format the XML Bibles are expecting (whole names and not short names) (
fixBookName()). It then uses that to extract the verses from the XML Bibles (
All that then gets returned to the elements on the fragment.
About the name
OpenSpritz has nothing to do with Spritz Incorporated. This is an open source, community created project. - David Brodsky
- @ampers_apps on BitBucket and twitter
This is licensed under CC BY-NC-SA 4.0: http://creativecommons.org/licenses/by-nc-sa/4.0/
The important bit about this is: ShareAlike "If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original."