Results 1 to 3 of 3

Thread: Nessecitas/Android - some (very) basic questions

  1. #1
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Thanks
    69
    Thanked 10 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Nessecitas/Android - some (very) basic questions

    I am developing on a Win7 machine and think about trying a port to Android.

    My app is based heavily on QGraphicsScene and QDomTree. I will need to include some audio and photo in- and output as well as saving/reading files.

    1. Is the Nessecitas project already "finished" enough or is it better to wait?
    2. Is it possible to use c++ code at all?
      I am rather new to c++ as well as Qt and this will be the first time I port something for a different system than windows.
      So, quite frankly, I don't want to put too many hours of trying into this, when it might be evident that it cannot work in the end.
    3. Is there anything important to know before I try the port?
    4. Also, any links to good tutorials are welcome. Or is it in fact rather easy to do such a thing?

  2. #2
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Thanks
    24
    Thanked 17 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Nessecitas/Android - some (very) basic questions

    Hi,

    Is the Nessecitas project already "finished" enough or is it better to wait?
    The project is mature enough to develop applications. QGraphicsScene and QDomTree work just fine in neccesitas

    Is it possible to use c++ code at all?
    If you have your application in Windows 7 using QT, you need to do very little (sometimes nothing at all) to run your application in Android. You just need to open your .pro in Neccesitas Creator and it will make an APK. You may need to change things like access to directories and temporary files because Android usually writes application data in the memory disk.

    Is there anything important to know before I try the port?
    - You need to use Neccestias QT Creator..

    - if you use a QGraphicsScene the mouse in windows in quite sharp getting a x,y position. For example, in Windows If you use small graphical items, very close together you can move the cursor to the exact position. Android use your finger so the objects in the screen have to be a bit bigger.

    - the use of custom fonts can be tricky.

    - Webkit is not yet there in neccesitas. As far as I know, QWebKit at the moment is not part of neccesitas. It might be from beta 1.

    Also, any links to good tutorials are welcome. Or is it in fact rather easy to do such a thing?
    \

    Go the necessitas website. I would recommend to you:

    - install a virtual machine with Linux 32 bits
    - install the Android SDK and NDK (see instruction in neccesitas website)
    - build and Install the latest alpha of neccesitas (see instruction in neccesitas website)
    - Create an small application with the required functionality in Windows (Using QT Creator)
    - Copy the sources to the virtual machine and try to build it in Android.


    Frankly, I have ported really big database applications from Windows to Android and I just opened the pro in Necessitas QT Creator, built an APK and installed in Android without a single problem.

    Carlos.

  3. The following user says thank you to qlands for this useful post:

    sedi (28th April 2012)

  4. #3
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Thanks
    69
    Thanked 10 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Nessecitas/Android - some (very) basic questions

    Thank you very much for this really helpful text. You've put much work into writing all this. I will try this in the next days, though probably on a Windows VM, because I am a total Linux noob. Thanks again, I'll post my experiences here!

Similar Threads

  1. Basic questions to debugging
    By emigrand in forum Newbie
    Replies: 5
    Last Post: 25th February 2012, 23:39
  2. Game programming basic questions?
    By unix7777 in forum Newbie
    Replies: 3
    Last Post: 20th February 2010, 18:16
  3. 2 basic questions?
    By unix7777 in forum Newbie
    Replies: 5
    Last Post: 28th January 2010, 10:44
  4. Basic Qt Questions
    By BalaQT in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2009, 18:13
  5. a basic questions!!
    By unix7777 in forum Newbie
    Replies: 1
    Last Post: 28th March 2009, 20:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.