Pinephone app development
#11
I am a hobbyist programmer and this topic interests me as well.
I find that being able to make applications for your phone is very interesting, also because often an application must be less complex than what you would expect from its computer counterpart.
I program in Python, so the most interesting alternatives for me are those that support this language.
Godot seems to me an interesting thing considering its features, but I'd like to see how small you can keep the binary size for applications that should be small (like an address book).
Then i read some enthusiastic articles about kirigami (that however depending on qt probably it ask for a lot of dependencies).
Another interesting project is beeware (that is always cross-platform but produces native code).
I tried pysimplegui some time ago and maybe it can be a good idea, but i think the interfaces would be less responsive.
Out of this, I always think that if you can separate the operating code from the graphic, there is always the possibility to create a new interface with another library in any time.
  Reply
#12
the development especially on mobile devices is quite a complicated matter, that is after you assess what hardware resources you need to deploy you have to choose a development platform that works smoothly and energy efficiently with those resources and the OS, you need the most efficient libraries etc, sometimes you may need to mix different things and dive into a very low level of hardware programming, it should always be considered on a per case basis
  Reply
#13
Here, this is my test with pysimplegui (basically python + tk).

The first picture, the app fit pretty well in the screen:
   

But if I try to open the keyboard everything gets shifted over:
   

And if I try to put the application in landscape, you can see that it doesn't resize.
   


Maybe I try to ask if I can somehow make a more dynamic interface.
  Reply
#14
these problems exist natively on Plasma, if you rotate upside down then Plasma can crash completely
  Reply
#15
(08-07-2021, 02:25 AM)mouffa Wrote: these problems exist natively on Plasma, if you rotate upside down then Plasma can crash completely

Yes but this is phos not plasma, and the problem is that this windows is unresizeable.
But searching a bit on the internet I saw that there is some work to make pysimplegui resizeable.
Ah I forgot to mention that it doesn't work only with tk but also with qt, web and wx.
So, i think that this alternative can be considered.
  Reply
#16
the situation is strange with the GUIs when ported to the mobile, for example in Phosh too there is a setting for screen zoom, the default is 200% but some system windows fall out of the screen, then you choose 100% zoom and you can see the full desktop, the concept of movement and resizability of the windows is quite different on mobile as I can understand
  Reply
#17
I really don't know, my feeling than now all these different "perspectives" are not yet well settled.
Perhaps another good idea is to take advantage of gnome/kde's webview and make web interfaces when the program is simple.
Just to not have size issues.

there is a python module for using webviews (never tried)
  Reply
#18
don't expect anything in this project to be settled until you settle it yourself or is settled at some point possibly by breaking something that previously had been working

in your case you should develop the app and then do some research in order to fix the problem ad hoc for every case of libraries and GUI that you use, you can have a look at the source code of other projects to see how they tackle it or if they were just lucky with their choices

I am personally developing a new mobile interface because I have a different philosophy concerning mobile devices especially ones like pinephone which use old hardware
  Reply
#19
(08-07-2021, 04:55 AM)vinnie Wrote: I really don't know, my feeling than now all these different "perspectives" are not yet well settled.
Perhaps another good idea is to take advantage of gnome/kde's webview and make web interfaces when the program is simple.
Just to not have size issues.

there is a python module for using webviews (never tried)

If you're doing python just use tkinter. There's no reason to overcomplicate this.
  Reply
#20
(08-07-2021, 06:04 AM)mouffa Wrote: ... I am personally developing a new mobile interface because I have a different philosophy concerning mobile devices especially ones like pinephone which use old hardware

Well explain your philosophy, don't think it's not interesting to me.

Quote:swiley
If you're doing python just use tkinter. There's no reason to overcomplicate this.

But pysimpleguy is only a wrapper of tk with more simple api.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone - boot from microSD laserpyramid 5 299 03-06-2024, 06:37 PM
Last Post: aular
  Are you using the Pinephone as your daily driver? jro 157 105,067 02-18-2024, 11:33 PM
Last Post: aular
  2020 PinePhone Manjaro CE EU for sale, name your price astrojuanlu 7 1,521 02-14-2024, 04:51 PM
Last Post: astrojuanlu
  pinephone is not bootble for the box. ijij 1 459 01-19-2024, 01:29 PM
Last Post: fxc
  Multiple issues with the Pinephone MTXP 12 1,937 12-28-2023, 07:55 AM
Last Post: MTXP
  pinephone repair shop shengchieh 0 381 12-26-2023, 02:42 PM
Last Post: shengchieh
  sudo nano file saving pinephone beta edition CharlesGnarley 4 1,477 12-22-2023, 03:44 PM
Last Post: Kevin Kofler
  Can't get Mobian on PinePhone to recognise USB-C docking bar duncan_bayne 9 6,599 12-04-2023, 02:14 AM
Last Post: Peter Gamma
  Pinephone not booting, always vibrating alexander12 7 4,664 11-22-2023, 06:46 PM
Last Post: Scary Guy
  Linux Kernel development Uturn 10 1,834 11-09-2023, 08:46 AM
Last Post: Kevin Kofler

Forum Jump:


Users browsing this thread: 1 Guest(s)