Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Single instance applications on N950
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Single instance applications on N950

Scheduled Pinned Locked Moved Mobile and Embedded
50 Posts 9 Posters 22.2k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Alicemirror
    wrote on 13 Aug 2011, 09:05 last edited by
    #41

    Hi, Leon.

    Does the method works now ?

    As a matter of fact, if after the rules file edit you have errors this means that edit went wrong. This is a thing I am almost sure.

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 13 Aug 2011, 10:15 last edited by
      #42

      [quote author="Alicemirror" date="1313226303"]Hi, Leon.

      Does the method works now ?

      As a matter of fact, if after the rules file edit you have errors this means that edit went wrong. This is a thing I am almost sure.[/quote]

      Yes, following the advises that I found in your discussion with matrixx I have managed to publish my app "location2sms":http://store.ovi.com/content/168861 for MeeGo Harmattan in Nokia Ovi Store. Thanks again :)

      http://anavi.org/

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alicemirror
        wrote on 13 Aug 2011, 10:33 last edited by
        #43

        Well, I am happy for this. Now the wiki page is restored to its original content.

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          yazwas
          wrote on 22 Aug 2011, 14:23 last edited by
          #44

          I've read thru all of these pages, and also the wiki, and changed my app but I cant seem to make it run!

          This is the line in the rules file
          $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/emirates247 install

          in the .desktop file this is the content
          [Desktop Entry]
          Encoding=UTF-8
          Version=1.0
          Type=Application
          Terminal=false
          Name=Emirates 24|7
          Exec=invoker --single-instance --type=d /opt/emirates247/bin/emirates247
          Icon=/usr/share/icons/hicolor/64x64/apps/emirates247.png
          X-Window-Icon=
          X-HildonDesk-ShowInToolbar=true
          X-Osso-Type=application/x-executable

          Now this make the app's icon shows correctly, but when clicking on it, it only opens a black screen and it remains black.

          any suggestions?
          Thanks

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alicemirror
            wrote on 22 Aug 2011, 19:47 last edited by
            #45

            Hello,

            sorry for the delay, I have read only in this moment the mail. Tomorrow morning I'll check you example with mine and see what It can be wrongl

            Enrico Miglino (aka Alicemirror)
            Balearic Dynamics
            Islas Baleares, Ibiza (Spain)
            www.balearicdynamics.com

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Alicemirror
              wrote on 23 Aug 2011, 05:59 last edited by
              #46

              @yazwas: Hi, I have done a thought on your problem. As you have pasted the piece of code without the code tag (using '@' character at the start and end of the paragraph in the wiki, I mean) it is impossible to see exactly what you have done: please do it again in a post or edit the previous.
              When I experience that something goes wrong on N9 or symbian devices (inside the code at runtime I mean) I see a blank screen only as you describe. But it is a problem of the application, not the packaging instructions as I know.

              So we should separate the steps. Is it possible that while you have changed the files for single-insance settings you have also done something of unwanted on the rest of the code?

              Please, repost the pieces you have changed as they are and not only the rules file, also the .desktop and anything else that you have changed. Then if you see already the same problem (black screen at startup) I am reasonably sure that this is a problem independent by the changes you have made for single-instnace mode. So be sure that the files thet you have changed have not missed lines, unwanted characters etc. I am aware that this is annoying operation, but this is debug... :)

              If the problem occours again we should isolate two overlapping different problems. Put in your main.qml only a "hello world" instruction. It should run in single instance with your changes as your complete application will do. Then add your code seeing what is wrong. You can also add useful printout console.log() instructions in the QML docs or Qdebug() in C++ file to see where the program stops before showing the blank black screen that you notice.

              If I can give you an advice, before start the changes for single-instance the best practice is to do a commit (svn or git it is the same) on a stable running application. Then do the changes and if somethings is wrong that you can't focus you should step-back and try again. This is what I have done before find a decent method reasonably sure to have the wanted results.

              Let me know what's happen. Thank you.

              Enrico Miglino (aka Alicemirror)
              Balearic Dynamics
              Islas Baleares, Ibiza (Spain)
              www.balearicdynamics.com

              1 Reply Last reply
              0
              • Y Offline
                Y Offline
                yazwas
                wrote on 28 Aug 2011, 10:23 last edited by
                #47

                @Alicemirror
                Thanks very much for the help, I've gone thru all you said, and still did not work out

                What I did eventually was trying to build on a different machine and for some ODD reason, it works perfectly!!!!
                it seems the problem was with the development station I've used originally (I dont know if that makes sense or not)
                but when tryed on different machine, just compiled the same code and ran it on N9 and N950, and Yeaaaay :)

                Thanks for your help!

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Alicemirror
                  wrote on 28 Aug 2011, 11:12 last edited by
                  #48

                  Ok! I am happy too. Because this strange "alchemy" I think MUST solve the problem but has also sense. Or at least I think I have understood the reasons for the changes that should be done.

                  Cheers.

                  Enrico Miglino (aka Alicemirror)
                  Balearic Dynamics
                  Islas Baleares, Ibiza (Spain)
                  www.balearicdynamics.com

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    saravenkat
                    wrote on 16 Nov 2011, 08:46 last edited by
                    #49

                    I tried the workaround. I modified the .desktop file, main.cpp and the rules file. It does not break the build, but it opens only with QT creator. It does not open with the invoker command on terminal. THe booster gives an error saying "Cannot dymanically load application". Could you please me with this?

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Dynasty1215
                      wrote on 21 Mar 2012, 15:06 last edited by
                      #50

                      I tried the workaround. I modified the .desktop file, main.cpp and the rules file. It does not break the build, but it opens only with QT creator. It does not open with the invoker command on terminal. THe booster gives an error saying “Cannot dymanically load application”. Could you please me with this?

                      I have the same problem, how to solved it? Plz help!

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved