UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. gwado
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 14
    • Groups 0

    gwado

    @gwado

    5
    Reputation
    6
    Profile views
    14
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    gwado Unfollow Follow

    Best posts made by gwado

    • RE: Problem initializing audio player for automatic playback on launch

      @CiberSheep Thank you for sharing this code with me.
      I've noticed that the problem seems to exist for this app too, as the developer uses a timer to start playback with a delay.
      I applied this in my code and it seems to work. I'll now be able to add a few features to it.
      Thanks again.

      Here's a code snippet if it helps anyone in the future. Timer interval (1500ms) to be adapted.

          Timer {
              id: playStarter
              interval: 1500
              onTriggered: {
                  musicPlayer.play()
              }
          }
          MediaPlayer {
              id: musicPlayer
          }
      
          function pause() {
              musicPlayer.pause();
          }
      
          function play() {
              if (musicPlayer.source) {
                  musicPlayer.pause();
                  playStarter.restart();
              }
          }
      
      
      
      posted in App Development
      gwadoG
      gwado
    • RE: Problem initializing audio player for automatic playback on launch

      @CiberSheep Thank you. I was using mediaplayer but the problem was the same. I'll dig up the subject again and go over the code. As my request is basic, the problem is certainly in my approach and my code.
      I will be back.

      posted in App Development
      gwadoG
      gwado
    • Vibe coding or create an app with AI

      Hello everyone,

      What are the views of UBports app developers regarding app creation with AI, please? Do any of you have any feedback or experiences to share?

      I'm not a professional coder; I've been coding for over 20 years with the aim of creating useful and functional tools for subjects other than IT. It's a passion since I keep coming back to it, but my goal has always been the end result rather than the code itself.
      In the past, I used to hand-code UT apps with quite a bit of difficulty. Partly because Python and QML aren't languages I'm familiar with, but also because the documentation for certain external APIs is sometimes vague, and also due to a lack of time (both for learning and for coding).
      I managed to make a few apps that work but remain somewhat shaky (some are still on the store: https://open-store.io/?search=publisher%3Agwado). Some apps are simple webapps.

      For the past few weeks, I've been testing the creation of an audio app (Subsonic client) with offline mode, an ergonomic interface, a certain sobriety, and using Python+QML. It works quite well, but 99.99% of the code comes from AI (Claude Pro version).
      Of course, there have been some hiccups and the code certainly isn't perfect, but I've been able to create a functional app for an OS that is close to my heart. It might not be totally secure, but it's still more so than if I had made it myself!
      I try to act as much as possible as an inspector and a guide. I don't code.
      Once the app is broadly finished, I plan to ask the AI to create a document for me explaining the code with examples, how the languages used work, the methods employed, etc. Solely for the purpose of enriching my knowledge.

      I think I understand the negative comments about using AI in the world of professional development. I've noted the AI industry's involvement in environmental, political, and social issues.
      Have you already tested AI as part of your UBports app projects? What lessons have you personally drawn from it? And how do you manage to reconcile this increased productivity, if you feel the same way as I do, with the values that drive us all more or less in the world of Free Software and UBports (my "old" Pixel 3a runs perfectly)?

      posted in App Development
      gwadoG
      gwado
    • RE: Vibe coding or create an app with AI

      @developerbayman We agree on that point. It’s a game-changer for projects carried out in people’s spare time.

      posted in App Development
      gwadoG
      gwado

    Latest posts made by gwado

    • RE: Vibe coding or create an app with AI

      @developerbayman We agree on that point. It’s a game-changer for projects carried out in people’s spare time.

      posted in App Development
      gwadoG
      gwado
    • RE: Vibe coding or create an app with AI

      Ok, thanks.

      posted in App Development
      gwadoG
      gwado
    • Vibe coding or create an app with AI

      Hello everyone,

      What are the views of UBports app developers regarding app creation with AI, please? Do any of you have any feedback or experiences to share?

      I'm not a professional coder; I've been coding for over 20 years with the aim of creating useful and functional tools for subjects other than IT. It's a passion since I keep coming back to it, but my goal has always been the end result rather than the code itself.
      In the past, I used to hand-code UT apps with quite a bit of difficulty. Partly because Python and QML aren't languages I'm familiar with, but also because the documentation for certain external APIs is sometimes vague, and also due to a lack of time (both for learning and for coding).
      I managed to make a few apps that work but remain somewhat shaky (some are still on the store: https://open-store.io/?search=publisher%3Agwado). Some apps are simple webapps.

      For the past few weeks, I've been testing the creation of an audio app (Subsonic client) with offline mode, an ergonomic interface, a certain sobriety, and using Python+QML. It works quite well, but 99.99% of the code comes from AI (Claude Pro version).
      Of course, there have been some hiccups and the code certainly isn't perfect, but I've been able to create a functional app for an OS that is close to my heart. It might not be totally secure, but it's still more so than if I had made it myself!
      I try to act as much as possible as an inspector and a guide. I don't code.
      Once the app is broadly finished, I plan to ask the AI to create a document for me explaining the code with examples, how the languages used work, the methods employed, etc. Solely for the purpose of enriching my knowledge.

      I think I understand the negative comments about using AI in the world of professional development. I've noted the AI industry's involvement in environmental, political, and social issues.
      Have you already tested AI as part of your UBports app projects? What lessons have you personally drawn from it? And how do you manage to reconcile this increased productivity, if you feel the same way as I do, with the values that drive us all more or less in the world of Free Software and UBports (my "old" Pixel 3a runs perfectly)?

      posted in App Development
      gwadoG
      gwado
    • How to retrieve and select available audio outputs

      I would like to find a solution to the problem of alarms that are triggered in the current default audio output.
      When headphones are connected to the smartphone, the alarm sound output remains the headphones and not the speakers.

      As a first step: do you know how to list the audio outputs, please?

      Next comes a very simple app to launch an alarm clock and select the audio output.
      It's more relevant to improve the official “clock” app, but I don't know if I have the minimum necessary skills.

      posted in App Development
      gwadoG
      gwado
    • RE: What's the best way to store a user password?

      @arubislander the Nextcloud API does not allow you to retrieve Ampache/Subsonic identifiers from the Music application.

      posted in App Development
      gwadoG
      gwado
    • RE: [solved using UT Tweak Tool] Use a timer even if the screen is off (in standby mode)

      I've looked at the UT Tweak Tool code but I don't have the skills for it.
      UTTT allows you to interrupt an app. It's functional, I won't go any further.
      Thanks! 🙂

      posted in App Development
      gwadoG
      gwado
    • RE: [solved using UT Tweak Tool] Use a timer even if the screen is off (in standby mode)

      @domubpkm Great, thanks.
      Already, it works when I enable this option on my app.
      That's a first step.
      I'll see if I can integrate the option into my app to be independent of UT Tweak Tool.

      posted in App Development
      gwadoG
      gwado
    • [solved using UT Tweak Tool] Use a timer even if the screen is off (in standby mode)

      I trigger a timer in an app (qml) but it pauses when the screen is off/locked.
      In apparmor, I use “keep-display-on”.

      In the code, although I don't think it's normally useful :

      import QtSystemInfo 5.5
          ScreenSaver {
              id: screenSaver
              screenSaverEnabled: false
          }
      
      

      Do you have a solution, please?

      posted in App Development
      gwadoG
      gwado
    • What's the best way to store a user password?

      For the UT Nextcloud Music application, I'm looking to store the connection form data (url, user, password) to avoid having to retype them regularly.
      I've managed to store this data in an sqlite database. Everything's working fine.
      But I'm wondering about saving the password in clear text in a local database.
      Is it secure?
      Do I have to hash/salt it? Knowing that I have to do the reverse afterwards, which makes the method available to anyone?
      Is it possible to use a system method? And if so, do you know a piece of QML code to store and retrieve this, please?

      posted in App Development
      gwadoG
      gwado
    • RE: Spotify blockt Futify

      @Tilo_HH I have the same phone but I use deezer via Waydroid. The UT-Deezer app is too unstable for me.
      Streaming services are very closed, the music's industry more than it. Maybe Spotify can be used via Waydroid.
      That is, an android simulated on UT that allows you to install F-Droid (via the apk on the official f-droid site) then Aurora Store (via F-Droid) then Spotify (via Aurora Store).
      Aurora Store enables you to use Google Play Store.
      F-droid is an open-source application store.
      You can also boycott companies that don't let you use them via open-source applications. However, they don't really care, given the small market share we represent. It's then possible to look for alternatives for listening to music. Spotify/Deezer & co are not The Music.

      I'm sorry I can't help you more than to suggest you use the official app via Waydroid or listen to music other than via streaming services.

      posted in App Development
      gwadoG
      gwado