×

Discussion Board

Page 1 of 4 1234 LastLast
Results 1 to 15 of 53
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    43

    List All Application of Meego

    Hello Developers,

    In one of my applications, i need to list all the applications installed in my N9. Can any body help me to find an API for that.

    I was not able to find that in Qt Framework atleast.

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: List All Application of Meego

    AFAIK no direct api is given in qt for this .
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    43

    Re: List All Application of Meego

    Hello kkrish

    Yes i am aware of that i spent a lot of time into that.

    But is there any other way to do this ??

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: List All Application of Meego

    In the terminal application, you can give -

    dpkg -l

    this lists all the packages installed on N9

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    43

    Re: List All Application of Meego

    Quote Originally Posted by kusumk View Post
    In the terminal application, you can give -

    dpkg -l

    this lists all the packages installed on N9
    Hello kusumk

    Thanks for your reply, yes this can be a solution, but how i can invoke this programatically.

    Pardon me i am new to this linux world, i am aware of how to do this in symbian c++.

    Thanks,

  6. #6
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: List All Application of Meego

    The platform 'Applications' plugin in 'Settings' application fetches this information and shows in installed applications list..
    So it should be possible, let me check. it should be using dpkg and apt tools internally.

    EDIT:

    Confirmed , they use dpkg only. I checked the package manager sources here (they are free and available at - http://harmattan-dev.nokia.com/pool/...ckage-manager/

    They have used python scripts to fetch the info -

    package-manager-1.0.2+0m6/test$ vi test_helper.py


    Code:
    def get_installed_packages_list():
        ret=commands.getstatusoutput("dpkg-query --showformat '${Package}\t${Version}\t${Section}\t${Status}\n' -W | grep '.*\t.*\tuser/.*\t.*'")
        installed = []
        lines = ret[1].split("\n")
        for line in lines:
            if "install ok installed" in line:
                t = line.split("\t")
                installed.append((t[0], t[1]))
        return installed
    Last edited by kusumk; 2012-03-19 at 07:41. Reason: adding info

  7. #7
    Registered User
    Join Date
    Nov 2010
    Posts
    43

    Re: List All Application of Meego

    Ok thats good, but is there any way i can execute this in Qt itself, or i may need to use something like PyQt or some otherway for interfacing Qt Quick and Python.

  8. #8
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: List All Application of Meego

    May be you could try something like this ( i dont think you need python, a simple shell script or running it like a terminal command capturing its output should be ok) using QProcess

  9. #9
    Registered User
    Join Date
    Apr 2012
    Posts
    28

    Re: List All Application of Meego

    Hello all,

    one of the application i am starting requires me to list all the apps installed in my Nokia N9 using Qt. As i am both new to Meego and Qt can anybody give me a small working example of how execute this usng QProcess.

    Thanks

  10. #10
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: List All Application of Meego

    Hi,
    documentation explains quite well how to use QProcess [1]
    Once you have executed the process (see code snippet at [1]) you could use ::readAllStandardOutput() to get all stuff which are printed out by the running process.

    [1] http://qt-project.org/doc/qt-4.8/qpr...StandardOutput

  11. #11
    Registered User
    Join Date
    Apr 2012
    Posts
    28

    Re: List All Application of Meego

    Hello gnuton,

    Thanks for your reply but how can i do that in QML ???

  12. #12
    Registered User
    Join Date
    Apr 2012
    Posts
    28

    Re: List All Application of Meego

    Hello gnuton

    i am able to make a c++ class and than was able to expose that to my QML component and now i am able to execute dpkg -l, but the data i get is all text, is there any logic behind that so that i can parse the application name and make a proper model out of that.

    Second question i also want the icon related information of each package or application installed how i can retrieve that.

    Third i get data about all the packages, is there any way i can get data about user installed applications only.

    Regards,
    takruk

  13. #13
    Nokia Developer Champion
    Join Date
    Nov 2009
    Posts
    200

    Re: List All Application of Meego

    Quote Originally Posted by takruk View Post
    i am able to make a c++ class and than was able to expose that to my QML component and now i am able to execute dpkg -l, but the data i get is all text, is there any logic behind that so that i can parse the application name and make a proper model out of that.
    I think message #6 in this thread should give you pretty good answer for this

  14. #14
    Registered User
    Join Date
    Apr 2012
    Posts
    28

    Re: List All Application of Meego

    Hello mikkotvr,

    sorry but i am not able to understand what you mean can be more elaborative, the code in #6 is in python.

    Thanks

  15. #15
    Registered User
    Join Date
    Apr 2012
    Posts
    28

    Re: List All Application of Meego

    Hello ,

    can somebody help me here as i am not able to format the response i get from dpkg -l.

    And how can i get the icons for installed apps in Nokia N9.

Similar Threads

  1. How to use in-app analytics in Meego application
    By PhoneSoulPL in forum Monetization APIs
    Replies: 4
    Last Post: 2012-02-03, 15:29
  2. Replies: 2
    Last Post: 2011-10-27, 15:34
  3. Replies: 8
    Last Post: 2011-09-18, 21:57
  4. MeeGo (N950) application caption
    By erichuang2008 in forum [Archived] 中文程式開發分享討論區 Traditional Chinese
    Replies: 2
    Last Post: 2011-08-09, 03:36
  5. Replies: 2
    Last Post: 2010-10-22, 23:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •