AnkiDroid parallel installs

938 views
Skip to first unread message

Michael Goldbach

unread,
Aug 22, 2014, 3:00:55 PM8/22/14
to anki-a...@googlegroups.com
Hi fellow AnkiDroid users!

Some few may have already noticed that I release parallel running alternate AnkiDroid builds.
So that people who either divide several study subjects to different ankiWeb accounts or share a device now can manage that easier.

To give better overview when I update said builds I will use this thread from now on to keep track of that.

So here is the newest (alpha) release:
https://github.com/trashcutter/Anki-Android/releases/tag/v2.3alpha6
older releases can be found at:
https://github.com/trashcutter/Anki-Android/releases

Since this latest release I have made a little change so that now not only are the apks installing in parallel they all have a different app name suffix too:
AnkiDroid.A, AnkiDroid.B and AnkiDroid.C is what you will see when you install all three apks.

Using the official app from the play store you can now use up to four profiles without constantly changing your settings.

Note, that it is required to allow installing third party apps in your Android settings to use my builds as they are not released on the play store.
Also note the known issues pointed out at the download site and use these builds at your own risk!

If you need more than four releases feel free to request more, I may add more if I see the need.

Enjoy!
Michael Goldbach
ankiMultiIcons.png

Tim

unread,
Aug 25, 2014, 8:11:31 AM8/25/14
to anki-a...@googlegroups.com
Thanks for this Michael!

Michael Goldbach

unread,
Aug 26, 2014, 2:46:11 PM8/26/14
to anki-a...@googlegroups.com
Hi everyone interested,

here the latest alpha in multiple flavors:
https://github.com/trashcutter/Anki-Android/releases/tag/v2.3alpha7


I guess I will look into adding native multi profile support as my next project.

Greetings
Michael

Xiao Sun

unread,
Aug 28, 2014, 6:35:47 AM8/28/14
to anki-a...@googlegroups.com
Thank you very much. Multiple profiles users will love you.

Michael Goldbach

unread,
Sep 2, 2014, 3:38:14 PM9/2/14
to anki-a...@googlegroups.com
New release:
https://github.com/trashcutter/Anki-Android/releases/tag/v2.3alpha13
I really haven't had any time so I apologize for being late and skipping some releases in between.

Xiao Sun

unread,
Sep 2, 2014, 5:09:02 PM9/2/14
to anki-a...@googlegroups.com
Thanks Michael.

No need to release every alpha and beta. It would be too much work for you. Plus testers only need one app to test the betas.

As long as you release parallels for main releases for general public, it should be enough.

Thanks for you work.

Cheers.

Michael Goldbach

unread,
Oct 2, 2014, 3:50:11 PM10/2/14
to anki-a...@googlegroups.com
Since we  now have a beta release here an update to the parallel builds for people with more than one AnkiWeb profile.
I try to update them now more frequently but I cannot guarantee that because I am more busy than I hoped I would be.

Download at:
https://github.com/trashcutter/Anki-Android/releases/tag/v2.3beta2

Xiao Sun

unread,
Oct 7, 2014, 9:03:40 AM10/7/14
to anki-a...@googlegroups.com
Hi Michael, can you change the name in the choose a widget window too?

Michael Goldbach

unread,
Oct 12, 2014, 10:58:49 AM10/12/14
to anki-a...@googlegroups.com
Hi,
after struggling a bit building the newer betas I now have a new release.
I changed the widget names. They are now english only though.

https://github.com/trashcutter/Anki-Android/releases

Xiao Sun

unread,
Oct 16, 2014, 4:42:34 AM10/16/14
to anki-a...@googlegroups.com
Thanks

Xiao Sun

unread,
Nov 8, 2014, 6:34:12 PM11/8/14
to anki-a...@googlegroups.com
Tim, did you force users to update to the latest version in order to sync? People using parallel versions can not update until releases an update, this can not sync.

Tim Rae

unread,
Nov 8, 2014, 6:36:17 PM11/8/14
to anki-a...@googlegroups.com

The forcing is done by Damien as older versions can lead to data loss. you'll need to wait for trashcutter to release an update, or compile yourself

On 9/11/2014 8:34 am, "Xiao Sun" <financia...@gmail.com> wrote:
Tim, did you force users to update to the latest version in order to sync? People using parallel versions can not update until releases an update, this can not sync.

--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/fEmmw3scey4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/9870ac3b-21a1-45fb-bfca-f5ababd95072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Goldbach

unread,
Nov 8, 2014, 7:15:38 PM11/8/14
to anki-a...@googlegroups.com
I am really sorry for being so late.
I have updated the parallel builds. No x-build though. I don't have the time for that right now.
https://github.com/trashcutter/Anki-Android/releases

Xiao Sun

unread,
Nov 8, 2014, 8:37:32 PM11/8/14
to anki-a...@googlegroups.com
Thank you very much.

ospalh

unread,
Dec 8, 2014, 10:53:01 AM12/8/14
to anki-a...@googlegroups.com
Thanks for these. And especially for the idea.

I would like to build my own parallel installs (latest alphas + my own patched version). So could you perhaps give me a few hints what you did here?
Thanks.



Tim Rae

unread,
Dec 8, 2014, 10:57:42 AM12/8/14
to anki-a...@googlegroups.com
You should be able to just change the applicationId in gradle and use the flavors feature

--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/fEmmw3scey4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.

ospalh

unread,
Dec 9, 2014, 5:09:47 AM12/9/14
to anki-a...@googlegroups.com


Am Montag, 8. Dezember 2014 16:57:42 UTC+1 schrieb Tim:
You should be able to just change the applicationId in gradle
Thanks for the tip.

Unfortunately it does not work. When i change he application id, the build fails.  Either i am doing it wrong or it's not working as advertised.

and use the flavors feature
 
Actually i think it is easier to handle (even if a little wasteful) to keep the vanilla and my version in different directories/git repos. The different versions for me are different git branches, and that works differently than the flavours.

ospalh

unread,
Dec 9, 2014, 6:53:15 AM12/9/14
to anki-a...@googlegroups.com


Am Dienstag, 9. Dezember 2014 11:09:47 UTC+1 schrieb ospalh:

Unfortunately it does not work. When i change he application id, the build fails.  Either i am doing it wrong or it's not working as advertised.

Solved it.
Looks like the package was hardcoded into some xml files.
See stackoverflow and my patch. I don’t fully understand that, so i am not sure whether this should be pulled into the main develop branch.

Tim Rae

unread,
Dec 9, 2014, 7:24:04 AM12/9/14
to anki-a...@googlegroups.com
Hmm yeah I'm not overly knowledgeable about custom namespaces in XML files, but does http://schemas.android.com/apk/res-auto work as well?

--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/fEmmw3scey4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.

ospalh

unread,
Dec 9, 2014, 7:30:59 AM12/9/14
to anki-a...@googlegroups.com


Am Dienstag, 9. Dezember 2014 13:24:04 UTC+1 schrieb Tim:
Hmm yeah I'm not overly knowledgeable about custom namespaces in XML files, but does http://schemas.android.com/apk/res-auto work as well?


Hmm. Maybe i’ll try.

But i noticed that the inline audio button does no longer work when you change the application id. Apparently neither with 'file:///android_asset/media_playback_start2.png' nor with file:///android_res/drawable/inline_play_button.png'. May have to investigate further.

Tim Rae

unread,
Dec 9, 2014, 8:16:58 AM12/9/14
to anki-a...@googlegroups.com
That sucks... But if "file:///android_asset/media_playback_start2.png" doesn't load then surely none of the CSS files are loading (as they're imported using the same URI syntax)...?

--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/fEmmw3scey4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.

ospalh

unread,
Dec 9, 2014, 8:19:27 AM12/9/14
to anki-a...@googlegroups.com


Am Dienstag, 9. Dezember 2014 14:16:58 UTC+1 schrieb Tim:
That sucks... But if "file:///android_asset/media_playback_start2.png" doesn't load then surely none of the CSS files are loading (as they're imported using the same URI syntax)...?

I think i got confused. Maybe a coding mistake. It looks like  file:///android_asset/ works (and with it the CSS), but  file:///android_res/drawable/ does not.

Tim Rae

unread,
Dec 9, 2014, 8:36:31 AM12/9/14
to anki-a...@googlegroups.com
Kind of bizarre that it happens, though you don't seem to be alone
It's not the end of the world though -- as long as it still works with assets. I changed it to use res to stop the icon pixelating on high res screens, but it's almost certainly possible to achieve the same effect without doing that.

--
You received this message because you are subscribed to a topic in the Google Groups "AnkiDroid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/anki-android/fEmmw3scey4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.

Xiao Sun

unread,
Feb 8, 2015, 6:53:56 PM2/8/15
to anki-a...@googlegroups.com
Is parallel installs still being maintained? Can't find anything on 2.4

Thanks

Xiao Sun

unread,
Sep 3, 2015, 9:22:35 AM9/3/15
to AnkiDroid
Can't sync since it now requires 2.4 or above? Sb please maintain parallel apk.

Tim

unread,
Sep 3, 2015, 9:30:47 AM9/3/15
to AnkiDroid
maybe you saw that message with alpha52 that I released a few hours ago? there was a build error which was causing that

Xiao Sun

unread,
Sep 3, 2015, 9:56:37 AM9/3/15
to AnkiDroid
No, I have not read any messages lately and I am currently not participating in beta testing. Wanna catch me up with what's going on? 

Michael only maintain up until 2.3 alphas, Ankiweb requires 2.4 or above for synchronisation. We can't use multiple profiles for almost a year now.

Tim

unread,
Sep 3, 2015, 1:08:33 PM9/3/15
to AnkiDroid
Ah right, just coincidental timing I guess.

Xiao Sun

unread,
Sep 4, 2015, 8:46:56 AM9/4/15
to AnkiDroid
I'm happy to maintain parallel apks if someone would give me step by step instructions on how to duplicate an apk.

Nicolas Raoul

unread,
Sep 4, 2015, 1:01:34 PM9/4/15
to anki-android
Hi Xiao,

Great!

First step: Install Github for Windows, and use it to clone https://github.com/ankidroid/Anki-Android.git (you will not need a fork)
Second step: Install Android Studio

Let us know when you are done with these two steps :-)

Cheers!
Nicolas Raoul

On Fri, Sep 4, 2015 at 9:32 PM, Xiao Sun <financia...@gmail.com> wrote:
I'm happy to maintain parallel apks if someone would give me step by step instructions on how to duplicate an apk.

--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.

To post to this group, send email to anki-a...@googlegroups.com.

Nicolas Raoul

unread,
Sep 5, 2015, 12:44:44 AM9/5/15
to Xiao Sun, AnkiDroid
Do you have a "Clone in Desktop" button similar to this when you go to https://github.com/ankidroid/Anki-Android ?


If yes, click on it.

On Sat, Sep 5, 2015 at 9:27 AM, Xiao Sun <financia...@gmail.com> wrote:
I have installed Github and Android Studio (& Java DK 8).

Can you elaborate on how to clone in step 1 please. 

Xiao Sun

unread,
Sep 5, 2015, 2:52:02 AM9/5/15
to AnkiDroid, nicola...@aegif.jp
I have installed Github and Android Studio (& Java DK 8).

Can you elaborate on how to clone in step 1 please. 

On Saturday, September 5, 2015 at 3:01:34 AM UTC+10, Nicolas Raoul wrote:

Nicolas Raoul

unread,
Sep 5, 2015, 6:30:51 AM9/5/15
to Xiao Sun, anki-android

Open Android Studio and choose "Open Project", then select the folder which you cloned the github repository to (we will refer to this folder as %AnkiDroidRoot%). The project should start without error, and build automatically.

Then, perform a global search-and-replace to change the namespace, and build again.

Finally, test the resulting APK and upload it somewhere.

On Sep 5, 2015 6:22 PM, "Xiao Sun" <financia...@gmail.com> wrote:
Okay, I have cloned it on desktop. Next step please.

Nicolas Raoul

unread,
Sep 5, 2015, 10:26:08 AM9/5/15
to Xiao Sun, anki-android

Please click on that blue link and install anything that says 22.

On Sep 5, 2015 9:01 PM, "Xiao Sun" <financia...@gmail.com> wrote:
okay, I fixed the git.exe error, but I still have the following error

Error:A problem occurred configuring project ':AnkiDroid'.
> failed to find target with hash string 'android-22' in: C:\Users\desktop\AppData\Local\Android\sdk
<a href="openAndroidSdkManager">Open Android SDK Manager</a>


Also when you say "github repository". It is Github/Anki-Android or Github/Anki-Android/.idea/AnkiDroid??

Tim

unread,
Sep 5, 2015, 11:35:32 AM9/5/15
to AnkiDroid
You don't have to change the namespace anymore, you can just change the app id in the build.gradle file in the AnkiDroid folder

Xiao Sun

unread,
Sep 5, 2015, 12:10:38 PM9/5/15
to AnkiDroid, financia...@gmail.com, nicola...@aegif.jp
After "open Project" and building I got this. I think there is an error.

Xiao Sun

unread,
Sep 5, 2015, 12:10:38 PM9/5/15
to AnkiDroid, financia...@gmail.com, nicola...@aegif.jp
Okay, I have cloned it on desktop. Next step please.

On Saturday, September 5, 2015 at 2:44:44 PM UTC+10, Nicolas Raoul wrote:

Xiao Sun

unread,
Sep 5, 2015, 12:10:40 PM9/5/15
to AnkiDroid, financia...@gmail.com, nicola...@aegif.jp
okay, I fixed the git.exe error, but I still have the following error
Error:A problem occurred configuring project ':AnkiDroid'.
> failed to find target with hash string 'android-22' in: C:\Users\desktop\AppData\Local\Android\sdk
<a href="openAndroidSdkManager">Open Android SDK Manager</a>


Also when you say "github repository". It is Github/Anki-Android or Github/Anki-Android/.idea/AnkiDroid??



Tim

unread,
Sep 5, 2015, 10:55:53 PM9/5/15
to AnkiDroid, financia...@gmail.com, nicola...@aegif.jp
I've added some instructions to the wiki... Follow all the instructions from 'Setting up the SDK' to 'Making "parallel" builds'

Xiao Sun

unread,
Oct 5, 2015, 7:20:52 AM10/5/15
to AnkiDroid, financia...@gmail.com, nicola...@aegif.jp
I'll come back to this project after I'm done with my CAIA and FRM exams (and maybe actuary exams), so it could be years.

Tim

unread,
Oct 5, 2015, 8:03:11 AM10/5/15
to AnkiDroid, financia...@gmail.com, nicola...@aegif.jp
Well thanks for making me waste my time writing instructions

Xiao Sun

unread,
Oct 5, 2015, 8:35:53 AM10/5/15
to AnkiDroid, financia...@gmail.com, nicola...@aegif.jp
Okay I'll give it another try during the xmas holiday season.

yogam...@gmail.com

unread,
Oct 5, 2015, 9:07:33 PM10/5/15
to AnkiDroid

On Friday, September 4, 2015 at 5:46:56 AM UTC-7, Xiao Sun wrote:
I'm happy to maintain parallel apks if someone would give me step by step instructions on how to duplicate an apk.

This was very exiting to hear!

Xiao,  when I read back through previous months and years of threads in this group, I was really struck by your commitment to giving needed feedback on the weakness of this app.  You often had great ideas, which were often disregarded, and I was very disappointed to read some of the BS excuses that were given for disregarding your suggestions.

I mean, who knows, maybe this will be the first step which leads to you learning how to make all of those improvements you have wanted.   I'd certainly prefer an AnkiDroid which had those improvements. 
 

Tim

unread,
Nov 19, 2015, 12:53:56 AM11/19/15
to AnkiDroid, yogam...@gmail.com
Here are some updated binaries for the parallel installs of v2.5 beta. Each of the A, B, and C flavors have one of the different icon designs from the poll:

Xiao Sun

unread,
Dec 17, 2015, 1:54:10 AM12/17/15
to AnkiDroid, yogam...@gmail.com
Using different icon colour for different profiles if multi profiles were to be supported in the future.

Xiao Sun

unread,
Nov 2, 2016, 8:44:03 AM11/2/16
to AnkiDroid, yogam...@gmail.com
anyone still maintain parallel apk?
Reply all
Reply to author
Forward
0 new messages