Android client beta 1

221 views
Skip to first unread message

Peter Bienstman

unread,
Nov 3, 2014, 3:46:49 PM11/3/14
to mnemosyne-...@googlegroups.com
Hi,

In case you want to try out the shiny new Android client, beta 1 can be found here:


The 'beta' label is primarily because of some missing features (most notably 'activate cards'), but otherwise I've been using it myself for a few weeks now.

Enjoy!

Peter

Chris

unread,
Nov 4, 2014, 12:48:11 PM11/4/14
to mnemosyne-...@googlegroups.com
That's great news, thanks!

I installed it today and tested it a bit and so far found the following problems:

1. Sound isn't played when it is in the question field, only when it is in the answer field (tested with front-to-back and back-to-front cards)

2. The font setting seems to work only for preinstalled fonts, it doesn't work for my additionally installed fonts (e.g. Ezra Sil), which I installed into the /system/fonts directory (this way it works when accessing the Mnemosyne web server through Firefox).

Peter Bienstman

unread,
Nov 4, 2014, 1:14:23 PM11/4/14
to mnemosyne-...@googlegroups.com
> -----Original Message-----
> 1. Sound isn't played when it is in the question field, only when it is in the
> answer field (tested with front-to-back and back-to-front cards)

I cannot reproduce this. Can you send me a small database which shows the problem?

> 2. The font setting seems to work only for preinstalled fonts, it doesn't work
> for my additionally installed fonts (e.g. Ezra Sil), which I installed into the
> /system/fonts directory (this way it works when accessing the Mnemosyne
> web server through Firefox).

I don't think this is supported through Android's webview widget. Did it work when you used chrome-mobile with the quick and dirty client? Googling seems to reveal that installing custom fonts on Android is not something that is readily supported..

Cheers,

Peter

Chris

unread,
Nov 4, 2014, 1:43:41 PM11/4/14
to mnemosyne-...@googlegroups.com
I emailed you the database.

The custom font only works with Firefox mobile not with Chrome mobile.

Peter Bienstman

unread,
Nov 7, 2014, 3:05:42 PM11/7/14
to mnemosyne-...@googlegroups.com
Hi,

I've posted a new version in the same location which should fix the sound issue.

As for custom fonts, that indeed seems a firefox-only feature which does not work with the standard Android widgets. A solution could be to add font files to the media of the database itself, but that will require quite some work. Perhaps in the future...

Peter

Gnome

unread,
Nov 8, 2014, 7:41:24 AM11/8/14
to mnemosyne-...@googlegroups.com
Do we still need python for android and SL4A?

I want to add javascript files to the database folder, where is it located?

Chris

unread,
Nov 8, 2014, 10:51:48 AM11/8/14
to mnemosyne-...@googlegroups.com
Great, thanks :-)
I tried it out and it works now.

Peter Bienstman

unread,
Nov 8, 2014, 11:53:21 PM11/8/14
to mnemosyne-...@googlegroups.com
Hi,

You don't need to install Python separately.

The database is still in /sdcard/mnemosyne.

Cheers,

Peter

Gnome

unread,
Nov 15, 2014, 4:55:56 PM11/15/14
to mnemosyne-...@googlegroups.com
There seems to be a problem with javascript in this version.
For example I tried
<SCRIPT LANGUAGE="JavaScript">alert("hello world");</SCRIPT>
and nothing happens, also my other scripts does not seem to work or have limited support.


kl. 21:46:49 UTC+1 mandag 3. november 2014 skrev Peter Bienstman følgende:

Peter Bienstman

unread,
Nov 16, 2014, 12:35:10 AM11/16/14
to mnemosyne-...@googlegroups.com
Are you sure you have downloaded the latest version? I've since put up a new version in the same location where I have enabled Javascript.

Peter

Gnome

unread,
Nov 16, 2014, 9:36:39 AM11/16/14
to mnemosyne-...@googlegroups.com
Hello, javascript seems to be enabled but some things does not seem to work. I'm not sure why, but I'm trying to figure it out.

Gnome

unread,
Nov 16, 2014, 10:38:37 AM11/16/14
to mnemosyne-...@googlegroups.com
I think I have isolated the problem.
For example I can paste the following into the marked field of a map-ype card In the PC version:

<script language="javascript" type="text/javascript">

var dbPath = "db_media:///";

var img = document.createElement("img");

img.src = dbPath+"test.png";


var src = document.getElementById("mnem1");

src.appendChild(img);

</script>


However, this does not work in the mobile version.

In the mobile version db_media:/// gives /sdcard/Mnemosyne/default.db_media/

But even if I add file:/ at the start

<script language="javascript" type="text/javascript">

var dbPath = "db_media:///";

var img = document.createElement("img");

img.src = "file:/"+dbPath+"test.png";


var src = document.getElementById("mnem1");

src.appendChild(img);

</script>

or directly

<img src="file://sdcard/Mnemosyne/default.db_media/test.png">

it does not work.

And if I try to access file://sdcard/Mnemosyne/default.db_media/inferiorBrain_med.png"

in my browser I get "access denied".

Peter Bienstman

unread,
Nov 17, 2014, 3:48:13 AM11/17/14
to mnemosyne-...@googlegroups.com
> -----Original Message-----
> <img src="file://sdcard/Mnemosyne/default.db_media/test.png">
>
> it does not work.

Try triple slashes after file:

Cheers,

Peter

Gnome

unread,
Nov 17, 2014, 4:09:39 PM11/17/14
to mnemosyne-...@googlegroups.com
I corrected the code above, and that did work.
After correcting my original script still does not work yet, so I will look into that.

Gnome

unread,
Nov 18, 2014, 2:11:47 PM11/18/14
to mnemosyne-...@googlegroups.com
OK, it works now.
The reason for it did not work in the first place was that the path to the db_media directory is expanded differently in the mobile than the PC version.
Mobile: /sdcard/Mnemosyne/default.db_media/test.png
PC: sdcard/Mnemosyne/default.db_media/test.png

Peter Bienstman

unread,
Nov 19, 2014, 5:21:54 AM11/19/14
to mnemosyne-...@googlegroups.com
OK, I'll make sure that the next PC release this path also starts with /

Cheers,

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/6f1cfe57-fbac-
> 4cdf-9216-e8ebf5af3de1%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/6f1cfe57-
> fbac-4cdf-9216-
> e8ebf5af3de1%40googlegroups.com?utm_medium=email&utm_source=foo
> ter> .
> For more options, visit https://groups.google.com/d/optout.


harizpo...@gmail.com

unread,
Nov 21, 2014, 1:01:15 AM11/21/14
to mnemosyne-...@googlegroups.com
I am using it in my android phone and it works great for me... Thanks a lot.
I have been using mnemosyne in my pc for two years and its simply the GREATEST thing in my whole studies and career...
And I was in a dilemma recently as I had to find an android version to better utilize time... This android client came with perfect timing and clean performance.
really appreciate the work you put in. I will definitely contribute to mnemosyne project.
Regards
Hariz

Peter Bienstman

unread,
Nov 21, 2014, 5:36:49 AM11/21/14
to mnemosyne-...@googlegroups.com
Thanks for the kind words!

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/567c2732-
> 95aa-40ef-8e23-58c50afd333f%40googlegroups.com.

goo...@matthias-berg.eu

unread,
Nov 24, 2014, 10:57:55 AM11/24/14
to mnemosyne-...@googlegroups.com
Hello,

I'm a big fan of Mnemosyne and have used it every day for more than a year (with rare exceptions). Great work!

Now I'm new on android. It might be hard to believe but going through flashcards daily was one of my most important use cases that finally made me buy a smart phone.
I tried this beta; downloaded it last week, so I think I missed the latest update). I got the phone to get the data from my server on windows.
But I have no idea how to syncronize back. I also couldnt find any option/settings menu in the android client. I basically only see the cards and the answer button (and the rating buttons on the next page). 

Kind regards
Matthias Berg




Am Freitag, 21. November 2014 11:36:49 UTC+1 schrieb Peter Bienstman:
Thanks for the kind words!

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of harizpo...@gmail.com
> Sent: 21 November 2014 07:01
> To: mnemosyne-...@googlegroups.com
> Subject: [mnemosyne-proj-users] Android client beta 1
>
> I am using it in my android phone and it works great for me... Thanks a lot.
> I have been using mnemosyne in my pc for two years and its simply the
> GREATEST thing in my whole studies and career...
> And I was in a dilemma recently as I had to find an android version to better
> utilize time... This android client came with perfect timing and clean
> performance.
> really appreciate the work you put in. I will definitely contribute to
> mnemosyne project.
> Regards
> Hariz
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Peter Bienstman

unread,
Nov 24, 2014, 11:15:09 AM11/24/14
to mnemosyne-...@googlegroups.com
Hi,

Press the menu button (typically a set of horizontal lines in the toolbar)

Cheers,
> > email to mnemosyne-proj-u...@googlegroups.com
> <javascript:> .
> > To post to this group, send email to mnemosyne-proj-
> > us...@googlegroups.com <javascript:> .
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/mnemosyne-proj-
> users/567c2732- <https://groups.google.com/d/msgid/mnemosyne-proj-
> users/567c2732->
> > 95aa-40ef-8e23-58c50afd333f%40googlegroups.com
> <http://40googlegroups.com> .
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout> .
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/03f97036-f4bc-
> 4563-bb86-11584ba8b0ec%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/03f97036-
> f4bc-4563-bb86-
> 11584ba8b0ec%40googlegroups.com?utm_medium=email&utm_source=foo
> ter> .

othe...@gmail.com

unread,
Nov 24, 2014, 6:29:47 PM11/24/14
to mnemosyne-...@googlegroups.com
Hi Peter,
it actually helped, but not in the way you might expect.
I got a galaxy note 4 and it does not have a hardware menu button, but I was able to use the apps button to trigger the hardware menu button.
according to this:
http://allaboutgalaxynote.com/galaxy-note-4-how-to-guides/how-to-access-galaxy-note-4-hardware-menu-button/
android phones shouldnt have a hardware menu button any more since android 2.3.

software menu? I really couldn't find any 3 dots. I could send a screenshot if it helps.

But anyway, I managed to sync now. I had updated today and tried to sync, but got some problems. had to delete the db and get a full sync.

kind regards
Matthias

Peter Bienstman

unread,
Nov 25, 2014, 12:21:54 AM11/25/14
to mnemosyne-...@googlegroups.com
Hi,

On my devices, I also don't have a hardware button.

I'm talking about the software button in the bottom tool bar, next to the icons back, home and stack.

Hope this helps.

Peter

matthias....@googlemail.com

unread,
Nov 25, 2014, 3:32:22 AM11/25/14
to mnemosyne-...@googlegroups.com
Hi Peter,

Can't see any software buttons:
http://imgur.com/nfDcfrp

For me the solution with the hardware button works and I'm quite happy that I didn't have to pull out my 16" device on the bus to study my vocabulary today. :)

But I'll certainly be willing to help fixing the software button solution if I can.

As mentioned in this thread before, custom fonts is not so easy on android. I certainly would rather read the chinese characters in a nice KaiTi font instead, but I guess this will have to wait.

Another question I have is regarding my success rate. I would say most of my daily reviews ended at around 70-90%. I wonder if I could improve on that by modifying something. I could modify that usually rate 4 and 1. 3 and 2 I basically choose if I feel "please show that soon again, but not today".
And now that I have a database with almost daily reviews of more than a year, I wonder if that would be helpful input for your analysis.

Kind regards
Matthias

Peter Bienstman

unread,
Nov 25, 2014, 4:09:07 AM11/25/14
to mnemosyne-...@googlegroups.com
> Hi Peter,
>
> Can't see any software buttons:
> http://imgur.com/nfDcfrp
>
> For me the solution with the hardware button works and I'm quite happy
> that I didn't have to pull out my 16" device on the bus to study my vocabulary
> today. :)
>
> But I'll certainly be willing to help fixing the software button solution if I can.

If you swipe down from the very top of the screen, don't you then get the standard menu? This might be due to Android's new full-screen behaviour. Otherwise, it's indeed due to Samsung's peculiar implementation on an Android device, as as far as I can, I simply use the standard APIs for menus.

> Another question I have is regarding my success rate. I would say most of my
> daily reviews ended at around 70-90%. I wonder if I could improve on that by
> modifying something. I could modify that usually rate 4 and 1. 3 and 2 I
> basically choose if I feel "please show that soon again, but not today".

I would not get too hung up on this, but if you really want, you could try giving lower grades, but at the expense of a lot more work.

Cheers,

Peter


goo...@matthias-berg.eu

unread,
Nov 25, 2014, 9:56:47 AM11/25/14
to mnemosyne-...@googlegroups.com
If you swipe down from the very top of the screen, don't you then get the standard menu? This might be due to Android's new full-screen behaviour. Otherwise, it's indeed due to Samsung's peculiar implementation on an Android device, as as far as I can, I simply use the standard APIs for menus.

If I swipe down from the very top of the screen I see a small notification bar, with clock, battery status, wifi and notifications. if I swipe again I get this in full screen.

I've been trying to find hints online where to find the software button. But I do have the software button (usually 3 dots in the top right) in most apps. So from here it looks like Mnemosyne just doesn't have that. But you say I should see it, so what can we do about it.

that thread just gives the hint to longpress recent apps, which is the hardware solution which shouldn't even be used any more.

same about this thread:
 

Peter Bienstman

unread,
Nov 25, 2014, 10:27:32 AM11/25/14
to mnemosyne-...@googlegroups.com
Hi,

Judging by especially the second thread, it seems this is indeed a Samsung issue and the way to access the menu on these devices is long pressing the recent apps button.

A strange decision by Samsung...

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of goo...@matthias-berg.eu
> Sent: 25 November 2014 15:57
> To: mnemosyne-...@googlegroups.com
> Subject: Re: [mnemosyne-proj-users] Android client beta 1
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/30e2a34b-
> 7297-4ccd-8efa-3547fe2c062a%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/30e2a34b-
> 7297-4ccd-8efa-
> 3547fe2c062a%40googlegroups.com?utm_medium=email&utm_source=foot
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages