简体   繁体   中英

Starting Qt application on Boot up- Android

I know how to start an android application on BOOT of device. I have done that in Java using a BroadcastReceiver. However, my isue is something else. I'm kinda stuck at this problem:

Problem: I'm using Qt for Android. I have a Qt file which listens for TCP/IP connections. Once the connection with the client is established, I start displaying images and sounds. However, I want this listening to be a background service which starts on boot of device. And only when the connection is established should the activity to display the images and sounds start. Any ideas on how to begin/implement? Do I have to use JNI?

This is a reported issue how to build background services with Qt:

Build background service with Qt on android

For the time being, there is the `QtService/Activity* thing from there, but it may be handier in future releases as the time goes ahead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM