What's up with Porn Fetch on Android? #68
EchterAlsFake
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Will Android Support come back?
The answer is very simple:
Yes
However, there's a slight problem which I will describe in detail down below.
The Problem
As you might know, Porn Fetch is built using Qt's Pyside6 or Qt for Python. Qt is a company which has a lot of tools to develop graphical user interfaces in almost any system you could think of. From cars to microwaves, to desktop apps. All of that is written and made in the C++ programming language. However, Porn Fetch is made in Python and thankfully Qt has created Qt for Python which allows me to use (almost all) C++ widgets from Qt by writing Python code.
This is great, because I can make a very solid and robust application, write the code once and have it everywhere on any platform. Qt on C++ supports Android officially, but the Android support for Python has been enabled ~2 years ago.
Basically we need to compile custom wheels (Python packages) for the different Android architectures. With those wheels we can use the Python 4 Android and Buildozer project to create an .apk file that you can install and run on Android.
This process is very complex, but already improved a lot. Back in the days it was a lot harder. I am testing a lot on Android and I get the app compiled and running just fine, with a few exceptional issues.
All input widgets e.g., the QLineEdits (the thing where you enter text / URLs) do not respond immediately. If you write text in there it appears after a few seconds and not immediately and sometimes it doesn't appear. You need to click it multiple times until it gets focused.
The QPushButtons (the buttons you press) have similar issues.
The Layout
Porn Fetch on Android needs another layout than the Desktop version. The desktop version was made for something between
1280x720
and1920x1080
pixels. However, this is a 16:9 resultion, while Android devices (or phones in general) have something like:1440px3120
which is completely different. I am testing Porn Fetch on a Pixel 7 Pro running Android 14.On tablets it might be different and on my old tablet I can actually run the Porn Fetch desktop layout perfectly fine, but the majority of people use a phone, so I'll develop for that screen aspect ratio.
Because of that I need to make a different layout for Porn Fetch. I basically have the same app two times but it looks different. That doesn't mean that I need to write more code, it just needs more brain cells, caffeine, and a lot of time.
Conclusion
Porn Fetch on Android willl come back, but it will still take time and I depend on Qt fixing the actual issues with the LineEdits and the responsiveness.
What's with iOS support?
NO
Beta Was this translation helpful? Give feedback.
All reactions