Unsolved Run Qt Console Application In background (as service) On Android X86
-
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