[sword-devel] SWORD + Cordova
Troy A. Griffitts
scribe at crosswire.org
Wed Aug 13 08:18:31 MST 2014
Dear Isaac,
I had a look on Android 2.3.3 (API Level 10) and found all sorts of
troubles.
Apparently the JavaScript engine in the HTML View on that level of
Android doesn't support:
a) calling me keyword methods by name, e.g., dataStore.delete(rowID);
must be dataStore['delete'](rowID);
b) IndexedDB, which is what I am using for bookmarks.
For (a) I've changed the syntax to use the map notation to work on older
JavaScript engines, and for (b) I've just placed a simply check for
IndexedDB support in the bookmark functions and return immediately if no
support. This means that bookmarking won't work for now until we can
come up with another solution.
In my emulator, I was unable to select modules from a select box drop
down, but this is a simple HTML select control, so I hope this just an
emulator problem. Also, similar problems with scrolling some of the views.
Anyway, I'd be grateful if you have time to let me know if it launches
now for you (with more than just a gray screen) and if you notice any of
the problems I've mentioned or others.
Thank you,
Troy
On 08/10/2014 09:50 PM, Isaac Dunham wrote:
> On Sun, Aug 10, 2014 at 08:23:03PM -0700, Troy A. Griffitts wrote:
>> Dear Matěj,
>>
>> Yes, you are correct. This requires a binary libsword, which I have built
>> for Android. I am hoping someone will build for iOS, Windows Mobile, and
>> even desktop OSes. This would theoretically let us run the same frontend on
>> all platforms, built entirely in JavaScript; however, we probably would want
>> to build separate frontends to look and feel appropriate. This still has
>> many advantages, including, sharing tons of code, hopefully.
>>
>> Though there hasn't been much interest. Has anyone been able to
>> successfully run and use the Android app at:
>>
>> http://crosswire.org/~scribe/bishop3.apk
>>
>> Any feedback on the verse study tools or parallel display? It doesn't take
>> advantage of the new mapping code Костя contributed yet, but I'd like to
>> implement that soon.
>>
>> Troy
> Hello Troy,
> I just tried downloading and installing that apk, but got only the grey screen.
> I've got an Android 2.3 ARMv6 phone with not much RAM and a slow processor,
> and could not figure out if I was supposed to install anything beforehand;
> the phone in question runs AndBible nicely and BibleTime Mini slowly.
>
> Thanks,
> Isaac Dunham
>
> PS: AndBible works well enough for me, if you're not wanting to support
> phones quite that old. But if you'd like me to test, I can.
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel
mailing list