Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Developing UBPorts apps with Python and PinePhone (questions

    App Development
    6
    7
    252
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      djkemmet last edited by djkemmet

      Hey All,

      New to development/open source and kinda confused. I'm working on a "book" to outline the steps for developing an app for UBPorts with Clickable and Python. Thing is now I am utterly stuck. I've gotten as far as being able to start and build my app with clickable but now I'm trying to move on to running it to preview/debug it and everything is stopping making sense.

      so I guess my top 3 Questions are:

      *First and perhaps most importantly, is python even a good choice to persue right now or are most of the tools in a state that make approaching a native app through QML/C a better option?

      *We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See

      https://forums.ubports.com/topic/4280/how-do-i-install-openssh-server
      https://forums.ubports.com/topic/4004/ssh-into-oneplus-3t?_=1589310095260

      *How do you get access to QT Creator? If I understand correctly, you need QT Creator to build your interface and in some cases code logic, however, I tried to download the evaluation and they revoked it the next day cause I'm not a "Viable Business"?

      any help our guidance would be MUCH Appreciated.

      Bolly libremax CiberSheep H Loops 5 Replies Last reply Reply Quote 0
      • Bolly
        Bolly @djkemmet last edited by

        @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

        *We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See

        clickable --ssh ip

        2015-Now (Daily use) : BQ Aquaris E4.5 Ubuntu edition
        2016-Now (Daily use) : BQ Aquaris M10 FHD Betatester
        2020-Now : PinePhone Braveheart & CE UBports

        D 1 Reply Last reply Reply Quote 0
        • libremax
          libremax @djkemmet last edited by libremax

          @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

          New to development/open source and kinda confused. I'm working on a "[book](https://github.com/djkemmet
          *We can't use ADB with PinePhone
          *How do you get access to QT Creator? If I understand correctly, you need QT Creator to build your interface and in some cases code logic, however, I tried to download the evaluation and they revoked it the next day cause I'm not a "Viable Business"?

          If you want to use QT stack to develop open source software, it's available for downloading here: https://www.qt.io/download-open-source?hsCtaTracking=9f6a2170-a938-42df-a8e2-a9f0b1d6cdce|6cb0de4f-9bb5-4778-ab02-bfb62735f3e5

          With Ubuntu, sudo apt install qtcreator is an other way.

          Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
          https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

          1 Reply Last reply Reply Quote 0
          • CiberSheep
            CiberSheep @djkemmet last edited by CiberSheep

            @djkemmet quick answering:

            • Python is as good as any other language to app
            • As you discovered, no adb (the PinePhone doesn't use Android drivers, just mainline kernel) so as pointed above, shh
            • Even of there is work to make Qt Creator work again, we use clickable for developement: https://clickable-ut.dev/

            Maybe you want to join forces with MiMeCar https://qt-programming-course-sphinx.readthedocs.io/en/latest/

            Another planet, another time, another universe!

            1 Reply Last reply Reply Quote 0
            • H
              hummlbach @djkemmet last edited by hummlbach

              @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

              ... If I understand correctly, you need QT Creator to build your interface and in some cases code logic ...

              You don't need qtcreator at all. But it might be useful to get code completion/navigation for example. Therefor it needs to be configured/setup correctly. @lduboeuf and @jonius are working on that currently. (See latest Q&A: https://www.youtube.com/watch?v=ir4hqfayd7w)

              Regarding python for the app backend/logic you may want to have a look at:

              • https://pyotherside.readthedocs.io/en/latest/
              • https://github.com/timsueberkrueb/ubports-gettogether/blob/master/timsueberkrueb/pyotherside/presentation.md
              • https://gitlab.com/hummlbach/keylock
              1 Reply Last reply Reply Quote 0
              • Loops
                Loops @djkemmet last edited by

                @djkemmet hello, once you have clickable up and running, if you want to preview your app on your PC/laptop you (this can aid quick development) can do:

                clickable desktop
                

                Clickable docs: https://clickable-ut.dev/en/latest/index.html

                Good luck.

                1 Reply Last reply Reply Quote 0
                • D
                  djkemmet @Bolly last edited by

                  @Bolly said in Developing UBPorts apps with Python and PinePhone (questions:

                  @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

                  *We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See

                  clickable --ssh ip

                  Does any additional set up need to be done on the PinePhone or clickable sign into the device and do everything to make it work?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post