Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Schlicki2808
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 17
    • Best 6
    • Groups 0

    Schlicki2808

    @Schlicki2808

    15
    Reputation
    7
    Profile views
    17
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website touchide.net

    Schlicki2808 Unfollow Follow

    Best posts made by Schlicki2808

    • UT Case for Google Pixel 3a

      Hello,

      I've designed a case for my Pixel 3a and ordered it at cewe. If you like it, I could post the original image.
      For me, it's really nice 😃

      c855c3f4-e632-4745-8a1a-c1f6299309b0-grafik.png

      posted in Off topic
      Schlicki2808
      Schlicki2808
    • RE: HTML App - file selection

      I found the solution! I came across the documentation for the policy groups. So I added "content_exchange" to the list of the "policy-groups" in the apparmor file and - voila - the input file dialog shows me a list of apps.

      Thanks for the hint with the Content Hub!

      posted in App Development
      Schlicki2808
      Schlicki2808
    • RE: Seasons Greetings

      @ubportsnews Merry Christmas and many greetings. Thank you for the awesome work on Ubuntu Touch. I love this system and I'm looking forward for the things and news to come. Keep up the good work!

      posted in News
      Schlicki2808
      Schlicki2808
    • RE: UT app kinda like aide?

      @developerbayman Yes, right 🙂 I'm very proud of it and I will keep it up 🙂

      posted in App Development
      Schlicki2808
      Schlicki2808
    • RE: UT app kinda like aide?

      @developerbayman You could try out Touch IDE which is a development environment you can use right on your UT phone. You can use this also in conjunction with touchide.net to be also able to develop in the browser.
      I hope this helps.

      posted in App Development
      Schlicki2808
      Schlicki2808
    • RE: Content exchange: Choose all file types from File Manager?

      I had a similar problem and I found a solution 🙂 At first, you have to add "content_exchange" to the list of the "policy_groups" in your apparmor file. Then, you'll get a list of apps when clicking on the file input. Then, you can use the change-event of the file input to read the contents of the chosen file. E.g.:

      var input = document.getElementById("file");
      if (input.files.length > 0) {
          var reader = new FileReader();
          reader.addEventListener("load", function() {
              console.log(reader.result);
          });
          reader.readAsDataURL(input.files[0]);
      }
      

      I hope this helps a bit.

      posted in App Development
      Schlicki2808
      Schlicki2808

    Latest posts made by Schlicki2808

    • RE: Problems with installed apps after switching to Focal

      Development works fine, thanks for the hint 🙂

      posted in 20.04 Focal Fossa
      Schlicki2808
      Schlicki2808
    • RE: Problems with installed apps after switching to Focal

      @kristatos Oh, I thought, it was the most recent one. So, I'll switch to development and see what happens.

      posted in 20.04 Focal Fossa
      Schlicki2808
      Schlicki2808
    • Problems with installed apps after switching to Focal

      Hello,
      I've just changed the channel to 20.04 RC. I can't uninstall my own apps to update them to the focal versions. I'm getting this error in clickable:

      Trying to uninstall the app first.
      Error: GDBus.Error:com.lomiri.click.OperationFailed: failed to remove schulferien.daniel
      

      On the other side, I have two camera apps and two weather apps in the Launcher. What could be wrong here?

      posted in 20.04 Focal Fossa
      Schlicki2808
      Schlicki2808
    • UT Case for Google Pixel 3a

      Hello,

      I've designed a case for my Pixel 3a and ordered it at cewe. If you like it, I could post the original image.
      For me, it's really nice 😃

      c855c3f4-e632-4745-8a1a-c1f6299309b0-grafik.png

      posted in Off topic
      Schlicki2808
      Schlicki2808
    • RE: UT app kinda like aide?

      @developerbayman Yes, right 🙂 I'm very proud of it and I will keep it up 🙂

      posted in App Development
      Schlicki2808
      Schlicki2808
    • RE: UT app kinda like aide?

      @developerbayman You could try out Touch IDE which is a development environment you can use right on your UT phone. You can use this also in conjunction with touchide.net to be also able to develop in the browser.
      I hope this helps.

      posted in App Development
      Schlicki2808
      Schlicki2808
    • RE: Seasons Greetings

      @ubportsnews Merry Christmas and many greetings. Thank you for the awesome work on Ubuntu Touch. I love this system and I'm looking forward for the things and news to come. Keep up the good work!

      posted in News
      Schlicki2808
      Schlicki2808
    • RE: Handle downloads with a WebView

      So, I finally found a solution. Okay, in my case, the constellation is a bit different: I have a qml app with a WebView. I ended up to trigger the download from HTML/Javascript side and to process the download on qml side. I failed to use the SingleDownload component because it can not handle data-URLs. So I implemented my own solution:

      // ...
              WebContext {
                  id: mainContext
                  onDownloadRequested: {
                      var fileUrl = "/home/phablet/.local/share/schulferien.daniel/Downloads/" + download.downloadFileName;
                      var request = new XMLHttpRequest();
                      request.open("PUT", fileUrl, false);
                      request.send(decodeURIComponent(download.url.toString().replace("data:text/plain;,", "")));
                      PopupUtils.open(downloadedMessage);
                  }
              }
      
              WebView {
                  id: mainWebView
                  context: mainContext
      // ...
      
      

      The "fileUrl" has to point to the application path + Downloads, otherwise a "device not open" error will occur.

      posted in App Development
      Schlicki2808
      Schlicki2808
    • RE: German Warntag: did you get a sms warning?

      I have the "Warnapp Deutschland" from OpenStore which worked fine.

      posted in Support
      Schlicki2808
      Schlicki2808
    • RE: Handle downloads with a WebView

      @cibersheep Thanks, this is a good starting point. I've tried around with SingleDownload and DownloadManager component. As long as the content to download comes from a web url, it works fine, but I have much difficulties with data urls.
      E.g.:
      This works:

      element1.setAttribute('href', 'data:;base64,' + btoa("Hello World! What's up with you?"));
      

      This doesn't:

      element1.setAttribute('href', 'data:;base64,' + btoa(icsContent));
      

      (I left out the mime types because it didn't make any difference)

      The only difference is that icsContent contains a long string with line breaks (\n) but apart from that it will also be converted to base64.

      My last idea is to create a web service, post the base64 to it and fetch the result by SingleDownload. That means that such a download requires internet which is not nice in this case.

      Is there another trick I can use?

      posted in App Development
      Schlicki2808
      Schlicki2808