What I've done already
I wrote patch yesterday where I implemented a new activity that has an intent filter that listens for http://lds.org/scriptures/ urls and then loads then gives the user the option to load them in GLA instead of viewing them in the browser.
In any case - the basic functionality works (minus the highlighting of the requested verses... which I discuss more below). The activity with the event filters finishes after it launches the scriptureview activity and it doesn't stay in the history stack so a scenario like this works great:
1) you are reading Handbook 2 as a presidency
2) you come to a link
3) you tap that link and GLA comes up with that verse
4) you hit the back button and you go back to the page of the handbook exactly where you were before (albeit now with an empty popup window there since the scriptures are loaded in a popup by default... but that's easy enough to close)
The patch is still a tad messy and I want to clean it up before I submit it - but I will definitely submit the patch in the next little while.
The main reason for this was that my internet connection is slow at church and when I'm reading content that's not in the GLA on the web (such as a teachers manual, or the church handbook, etc) - I would prefer to have it load up in GLA where the content is already preloaded than to have to face a slow network call.
What I'm still wanting to do, but can't seem to figure out how
translating that to a uri that is used by GLA is pretty easy - the path is a direct translation and the language just gets moved over so it becomes something like this
(or if you want to get really technical - it uses file:///android-asset/en/dc-testament/dc/43.3-5#2)
It's easy to parse out ranges and specific verse and construct a list of verses that should be highlighted, and I've already implemented that - but getting the webView to actually highlight them has me stumped.
Anyone have any idea where to debug this (or get it to work)?
Additional questions about where / how to post the in-progress patches
Also - what's the best way to post patches like this that are still rough around the edges? (I've gotten too used to git projects where the norm is to just fork the project and send pull requests to the upstream project when you have something that is worth looking at)
Discussions around the Android version of the Gospel Library application.
3 posts • Page 1 of 1
Just wondering if you've finished the "GLA load and parse http://lds.org/scriptures url" patch you refer to above? I'm trying to figure out how to use a personal scripture list app and refer to the GLA on my Samsung Android device. Thx.
Yes please! Like. +1.
Who is online
Users browsing this forum: No registered users and 1 guest