-
Hi, are there any build instructions generating an Xdrip APK with Android Studio available? I tried following what works for AAPS, but had build errors. (Depending on build variant, one of them were: Unable to load class 'javax.xml.bind.JAXBException'.) Hopefully it's not too different from building AAPS? I would just like to be able to build two instances of Xdrip with different app names and icon colours to easily differentiate an app for a left and right hand side transmitter. This is to be able to run overlapping transmitter sessions at day 9, and thus avoid poor data for looping. I am aware of the build variants that are available on Google Drive. This will serve the purpose, but on a small screen (Jelly 2), I could not see the full app name under the icon. The only differentiation is then the location of the icon on the home screen. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 26 replies
-
I got started within the past month or so, but my memory of how I solved it isn't perfect. I believe the problem with 'javax.xml.bind.JAXBException' was that the JDK that comes bundled with Android Studio is too new. I think you need to install Java 8 from Oracle.com (also known as 1.8, I think?). The file I ended up downloading was called: I don't know what else I changed, but here are the settings that I'm currently using: Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
So I have managed to build Xdrip+ with AS now, but I have not been able to do what I intended to do when building. I hope it is ok to continue the conversation here, as it is included in the initial question. My intention is to build my own build variants to have two instances of Xdrip that are easily distinguishable. This is in the context of running two Dexcom transmitters with overlapping sessions on the last day. I would like to have a second build with green icon (right hand side sensor) and possibly some distinguishing colouring inside of the app too. The original app with red icon can be for the left hand side. I have tried adding productFlavour to build.gradle for both app and wear following these instructions: https://developer.android.com/studio/build/build-variants#change-app-id , and then adding new Image Assets with a green icon for both. My changes are visible in this branch: https://github.com/bjornoleh/xDrip/commits/variants-bo When building, bollowing the instructions for AAPS (Generate signed APK) I got the following error:
|
Beta Was this translation helpful? Give feedback.
-
There isn't an easy way to rename an installed app. But, there are ways to do it. I just did a search and got plenty of results. One is to use a launcher, which lets you rename the app on the home screen. It seems to me if you add something in front of xDrip in the name, it should show on your screen. For example, you can rename the variants to "L_xDrip" and "R_xDrip". |
Beta Was this translation helpful? Give feedback.
-
The variants already have launcher titles like |
Beta Was this translation helpful? Give feedback.
You can also merge #1876 or just cherry-pick 90ea672.