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. Qt Android Necessitas, switch to java and back to main Qt thread

Qt Android Necessitas, switch to java and back to main Qt thread

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.4k 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.
  • D Offline
    D Offline
    denis22
    wrote on last edited by
    #1

    Hello!

    Using Necessitas. I read that QtMobility not ported or don't work and camera interface works only from java.
    First, I try use JNI. But calling some java functions, i have errors (maybe bad context or thread), and because window with access from java needed for camera preview, I create window from java (when user press menu button on device).
    (Method onCreateContextMenu in file QtActivity.java)
    I set this window as central widget using setContentView. All ok, photo taken, but I can't return back to main program. Is it possible? Need any variant, run from beginning too.

    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