Default Project Icon

necessitas

Home Wiki Tickets Git Downloads Ministro Necessitas Home Page

Home

BogDan Vatra daminetreg
Attachments
Thumbnail
logo.png (9315 bytes)

Welcome to Necessitas wiki home page!

Here you'll find necessary informations about [How to install Necessitas SDK], [Setup QtCreator] and [How to write Qt apps for Android]

Also if you want more, you will find information about how to [Compile Qt framework] and [Compile QtCreator]

If you want to help us please check [Guidelines for contributions to Necessitas project] wiki page.


Related

Wiki: How to write Qt apps for Android
Wiki: How to install Necessitas SDK
Wiki: Compile Qt framework
Wiki: Compile QtCreator
Wiki: Setup QtCreator
Wiki: Guidelines for contributions to Necessitas project

  • Rommel
    Rommel
    2011-03-02

    Hi: How do I include the android libraries to my Qt Project?

    I mean, for example access the GPS or clinometers?

    THX

     
    • daminetreg
      daminetreg
      2011-03-02

      Currently the port of Qt Mobility isn't finished but should provide access to this elements. If you want to help the Qt mobility port you are welcome, however you can use gps and so on by doing your own JNI bindings to wait the Qt Mobility port, although if you do it, it could be cool that you integrate your work to the Qt Mobility port, because it would help others too.

       
    • Carlos Quiros
      Carlos Quiros
      2011-05-13

      Hi Rommel,

      Did you had any luck accessing the android libraries?

      I got stuck with activity.getSystemService(String serviceName)... How can I get the activity where QT is running from?

      Thanks in advance.

       
      • Rommel
        Rommel
        2011-05-13

        Hi Carlos:
        I'm sorry to say that I just quit trying, I was only experimenting with Necessitas, I'm not in a hurry or something. I'm not capable of doing the bindings by myself, so I will wait.
        Sorry for not been helpful :-S

         
        • Carlos Quiros
          Carlos Quiros
          2011-05-18

          ok.

          I managed to make an application to use the GPS service. You can see the post here:

          http://www.qtcentre.org/threads/41698-QT-in-Android-Example-for-accessing-the-GPS-Service

          This wiki somehow does not allow to post the full story.

          There is some critical information for BogDan Vatra et al.

          Hope this will help others.

          Thanks.

           
          Last edit: Carlos Quiros 2011-05-18
  • Atul Sharma
    Atul Sharma
    2011-03-18

    Excellent work!!!
    Question - Can I embed flash content? If so how?

     
    • daminetreg
      daminetreg
      2011-03-18

      It seems not possible for the moment, even if Qt Webkit works you won't get the flash plugin running on your device as a mozilla npapi plugin (supported by QtWebkit). Flash isn't open source, so it seems hard to me to port it for this use case.

       
  • M Greene
    M Greene
    2011-03-18

    "/home/mgreene/android-sdk-linux_x86" doesn't seem to be an Android SDK top folder - I keep getting this error message despite reinstalling SDK and necessitas several times. I am using Ubuntu, ant 1.8,OpenJDK, and installed in /opt/necessitas

     
    Last edit: M Greene 2011-03-18
    • daminetreg
      daminetreg
      2011-03-18

      Did you follow the instructions [Setup Android SDK], because you need to update your sdk with the graphical manager included in it. :)

      Please don't open Qt Creator while SDK is installing.

       

      Related

      Wiki: Setup Android SDK


      Last edit: daminetreg 2011-03-18
  • viny
    viny
    2011-03-23

    Just to point out an error in default build configuration, the shared libraries (included via Qt Creator Left Pane -> Projects -> Run -> Libraries -> PreBundled Libraries) names should not be "libLIBNAME.so" in libs.xml but only "LIBNAME".

     
  • turtlerace
    turtlerace
    2011-03-23

    BogDan,

    let me first thank you for this fabulous work. It is a pleasure to use it.
    I have a problem migrating an existing linux project to necessitas.
    The project consists of an executable and a static library (2 "subprojects")
    Everything compiles, a lib...a is created for the static library.
    However, when I try to deploy the app, necessitas tries to copy a lib...so to the device. This shared library, however, does not exist.

    Did I misconfigure something?

     
  • viny
    viny
    2011-03-23

    I also encountered the same issue as above (@turtlerace). I just did a temporary workaround by making a dummy lib...so for further processing :p and have successfully deployed my project after that :)
    I am also looking forward to proper solution for the above issue

     
  • turtlerace
    turtlerace
    2011-03-23

    Thanks viny, splendid idea. I changed to shared linking only for this project which also works. But I want to go back to static when it will be possible.

     
  • viny
    viny
    2011-03-30

    I am having a problem in using custom imageformats qt-plugin in my qt-application-on-android. I am using a custom image format for performance issue and use custom imageformats plugin for this. On linux-x86 it works just fine by adding the plugin library path as
    QApplication::addLibraryPath("PLUGIN_LIB_PATH");
    and I can load the images properly in my application.

    I have tried the same way by adding the plugin-library path as above on android but it doesn't work. Pushing the libraries in default plugin path "/data/data/eu.licentia.necessitas.ministro/files/qt/plugins/imageformats" also didn't work.

    Since on android, we have to manually load Qt libraries also, so I tried manually loading the plugin library in QtApplication.java itself. It loads the plugin library successfully as seen in adb logcat, but still the images cannot shown in the application.

    Could someone give me some idea about how can I use custom Qt-plugin to work for my application to run on android successfully?

     
  • Steve King
    Steve King
    2011-04-08

    I have an application with bundled libs, but when I try to deploy it the budled libs don't get loaded. The application output reports findLibrary fails for each of them and then the main application fails because the dependency fails. I haven't seen a demo of one working with bundled libs so any help would be appreciated.

     

Cancel   Add attachment