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. Run Qt Console Application In background (as service) On Android X86
Qt 6.11 is out! See what's new in the release blog

Run Qt Console Application In background (as service) On Android X86

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 387 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.
  • N Offline
    N Offline
    narayanan.krish
    wrote on last edited by
    #1

    Hello all,
    I've created a Qt console application using Qt 5.12.7 for Android X86. I'm using Android android-ndk-r20b. As per (https://www.kdab.com/qt-android-create-android-service-using-qt/), I'm trying to convert this application to run as a service on Android automatically on startup. I've added a broadcastreceiver and made necessary changes to androidmanifest.xml. I've added a qDebug() in main.cpp and a Log in broadcastreceiver. When I reboot the system, I'm able to view only the Log added in broadcastreceiver but not able to view the qDebug added in main.cpp. Can someone please let me know where i'm going wrong. Any help is highly appreciated.

    Attached sample codes for your reference :

    Android manifest - https://pastebin.com/u8TiewJN
    MyBroadcastReceiver.java - https://pastebin.com/4ieZpc6F
    main.cpp - https://pastebin.com/JvRqHdfD
    .pro - https://pastebin.com/GA4fcyxg

    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