<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Run Qt Console Application In background (as service) On Android X86]]></title><description><![CDATA[<p dir="auto">Hello all,<br />
I've created a Qt console application using Qt 5.12.7 for Android X86. I'm using Android android-ndk-r20b. As per (<a href="https://www.kdab.com/qt-android-create-android-service-using-qt/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.kdab.com/qt-android-create-android-service-using-qt/</a>),  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.</p>
<p dir="auto">Attached sample codes for your reference :</p>
<p dir="auto">Android manifest - <a href="https://pastebin.com/u8TiewJN" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/u8TiewJN</a><br />
MyBroadcastReceiver.java - <a href="https://pastebin.com/4ieZpc6F" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/4ieZpc6F</a><br />
main.cpp - <a href="https://pastebin.com/JvRqHdfD" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/JvRqHdfD</a><br />
.pro - <a href="https://pastebin.com/GA4fcyxg" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/GA4fcyxg</a></p>
]]></description><link>https://forum.qt.io/topic/116880/run-qt-console-application-in-background-as-service-on-android-x86</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 02:50:08 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/116880.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Jul 2020 09:24:17 GMT</pubDate><ttl>60</ttl></channel></rss>