Python + KivyMD + Buildozer: Creating an Android App with Firebase db (CRUD)

307 views
Skip to first unread message

Angelo Caltabiano

unread,
Feb 16, 2023, 5:54:45 PM2/16/23
to Kivy users support
Hi all and nice to meet you.
This is my first message here.

I am working on an Android App made with Python/KivyMD and deployed with Buildozer.
In the test version I was using sqlite3 and it was working like a charm.

Beside that I have discovered that with Android 12, there is a bug with KivyMD 1.1.1,
using the MDTopAppBar, that crash the entire App. The working stable version of 
KivyMD is the 1.0.2.

Now I would like to use a cloud based database like firebase, 
and I'm having trouble setting up the buildozer.spec file.
What I know for sure is that I have to activate android.enable_androidx = True
and I need the correct information for:
  • android.gradle_dependencies
  • android.add_resources
  • android.add_gradle_repositories
  • requirements = (Specific like: firebase_admin) ...
Maybe from python side in the main.py some specific import or line of code is needed.

I am kindly asking your help, assuming that someone faced the same problem and a working solultion has been found and test.

I want to thank you all in advance for your patience and time reading this message.
Waiting for good news,

I Send My Best Regards,

Angelo

Robert

unread,
Feb 16, 2023, 6:21:28 PM2/16/23
to Kivy users support
- The current Buildozer (1.5) enables androidx by default

- On mobile the easiest (and light weight) way to access cloud storage is via the REST api. You can use firebase_admin but you will be opening a can of worms.

Angelo Caltabiano

unread,
Feb 16, 2023, 6:34:51 PM2/16/23
to Kivy users support
Wow that was a fast and very useful answer Robert!

With that link you gave me, now I have a lot of interesting and useful alternatives solutions to my app development!

Thank you so much for your time and Great help! 

...Better do not open that scary can...

Let's see now how it goes...Keyboard, music and beer are ready on the desk!
Reply all
Reply to author
Forward
0 new messages