Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML in Aandroid application is stopped with use downloadmanager example
Qt 6.11 is out! See what's new in the release blog

QML in Aandroid application is stopped with use downloadmanager example

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 517 Views
  • 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.
  • H Offline
    H Offline
    HomDX
    wrote on last edited by
    #1

    Good day

    I created the application from template QML stack view
    By making this instruction https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html
    I will added a class for access cpp code from QML page
    I added the example /Qt/Examples/Qt-5.12.4/network/downloadmanager
    I built and launched the desktop application on Linux. It works and downloads files
    I build apk and install to phone. Application upon startup, is terminates immediately.
    

    Log apk

    08-21 23:30:46.306   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.lbe.security.miui/com.lbe.security.service.BootReceiver
    08-21 23:30:46.405   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.android.settings/.search.provider.UpdateReceiver
    08-21 23:30:46.428   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.android.vending/com.google.android.finsky.packagemanager.impl.PackageMonitorReceiverImpl$RegisteredReceiver
    08-21 23:30:46.429   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.facebook.appmanager/com.facebook.oxygen.appmanager.common.packages.event.manifest.ManifestPackageEventReceiver
    08-21 23:30:46.429   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy
    08-21 23:30:46.429   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.google.android.gms/.gass.chimera.PackageChangeBroadcastReceiver
    08-21 23:30:46.429   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
    08-21 23:30:46.431   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher
    08-21 23:30:46.431   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.miui.global.packageinstaller/.AppInstalledReceiver
    08-21 23:30:46.432   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.miui.micloudsync/.push.MicloudPushServiceReceiver
    08-21 23:30:46.432   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.xiaomi.discover/com.xiaomi.market.data.MyPackageMonitor
    08-21 23:30:46.514   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.xiaomi.mipicks/com.xiaomi.market.data.MyPackageMonitor
    08-21 23:30:46.523   955   988 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.qtproject.example.card_helper flg=0x4000011 (has extras) } to com.xiaomi.providers.appindex/.PackageChangeReceiver
    08-21 23:30:48.806   955   988 W XSpaceManagerService: update XSpace App: packageName:org.qtproject.example.card_helper, user:UserHandle{0}, action:android.intent.action.PACKAGE_ADDED
    08-21 23:30:53.232   955  3430 W WindowManager: Attempted to set focus to non-existing app token: Token{e4005c7 ActivityRecord{1ef47f4 u0 org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity t508}}
    08-21 23:33:37.036   955  1322 W WindowManager: Attempted to set focus to non-existing app token: Token{80d2c9b ActivityRecord{c156838 u0 org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity t510}}
    08-21 23:33:37.095  1997  2348 D PowerKeeper.Event: notifyAMProcStart processName: 10166 reason: org.qtproject.example.card_helper, pid:0
    08-21 23:33:37.156   391   391 I BufferQueueConsumer: [Splash Screen org.qtproject.example.card_helper#0](this:0xa6c12000,id:1293,api:0,p:-1,c:391) setConsumerName: Splash Screen org.qtproject.example.card_helper#0
    08-21 23:33:37.156   391   391 I BufferQueueConsumer: [Splash Screen org.qtproject.example.card_helper#0](this:0xa6c12000,id:1293,api:0,p:-1,c:391) setDefaultBufferSize: width=720 height=1440
    08-21 23:33:37.183   391  1004 I BufferQueueProducer: [Splash Screen org.qtproject.example.card_helper#0](this:0xa6c12000,id:1293,api:2,p:955,c:391) connect(P): api=2 producer=(955:system_server) producerControlledByApp=false
    08-21 23:33:37.314  2009  3929 D GameBoosterService: onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='org.qtproject.example.card_helper', mForegroundUid=10166, mForegroundPid=24755, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10047, mLastForegroundPid=1267, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=1}
    08-21 23:33:37.320   386   410 I vendor.mediatek.hardware.power@1.1-impl: notifyAppState pack:org.qtproject.example.card_helper, act:org.qtproject.qt5.android.bindings.QtActivity, pid:24755, state:1
    08-21 23:33:37.322   386   409 I libPerfService: [perfNotifyAppState] foreground:org.qtproject.example.card_helper, pid:24755
    08-21 23:33:37.799 24755 24755 D AccessibilityManager: AccessibilityManager status: mPackageName = org.qtproject.example.card_helper, mOptimizeEnabled = false, mIsEnabled = false, mIsUiAutomationEnabled = false, mIsInterestedPackage =false
    08-21 23:33:37.923 24755 24786 I Qt JAVA : Can't find '/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/lib.so'
    08-21 23:33:38.010 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.045 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.084 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.133 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.214 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.229 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.260 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.273 24755 24786 W linker  : "/data/app/org.qtproject.example.card_helper-lSqDIvU8XNSZBZ56hYdX9w==/lib/arm/libQt5RemoteObjects.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.285 24755 24786 W linker  : "/data/data/org.qtproject.example.card_helper/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.300 24755 24786 I Qt      : qt started
    08-21 23:33:38.305 24755 24786 W linker  : "/data/data/org.qtproject.example.card_helper/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:38.307 24755 24786 I Qt JAVA : Can't find '/data/data/org.qtproject.example.card_helper/qt-reserved-files/lib/libQt5QuickParticles.so'
    08-21 23:33:38.530 24755 24755 D OpenGLRenderer: <org.qtproject.example.card_helper> is running.
    08-21 23:33:38.553 24755 24755 V PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{a1657a3 org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity,ident = 0}, this = DecorView@5492aa0[QtActivity]
    08-21 23:33:38.629   391   391 I BufferQueueConsumer: [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0](this:0xa6c60000,id:1294,api:0,p:-1,c:391) setConsumerName: org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0
    08-21 23:33:38.629   391   391 I BufferQueueConsumer: [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0](this:0xa6c60000,id:1294,api:0,p:-1,c:391) setDefaultBufferSize: width=720 height=1344
    08-21 23:33:38.858 24755 24837 D HWUIExtension: <org.qtproject.example.card_helper> is running.
    08-21 23:33:38.859   391  1527 I BufferQueueProducer: [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0](this:0xa6c60000,id:1294,api:1,p:24755,c:391) connect(P): api=1 producer=(24755:org.qtproject.example.card_helper) producerControlledByApp=true
    08-21 23:33:38.901  1778  1784 D GasService: pkg a:[org.qtproject.example.card_helper] [D] pid:24755 uid:10166 audio:0,_s:0
    08-21 23:33:38.950   955   995 I ActivityManager: Displayed org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity: +1s892ms
    08-21 23:33:38.952  1997  2348 D PowerKeeper.Event: notifyActivityLaunchTime: org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity totalTime: 1892
    08-21 23:33:38.989   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.89 cannot be handled by hwcomposer
    08-21 23:33:39.006   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.79 cannot be handled by hwcomposer
    08-21 23:33:39.021   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.67 cannot be handled by hwcomposer
    08-21 23:33:39.038   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.57 cannot be handled by hwcomposer
    08-21 23:33:39.054   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.46 cannot be handled by hwcomposer
    08-21 23:33:39.071   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.35 cannot be handled by hwcomposer
    08-21 23:33:39.088   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.24 cannot be handled by hwcomposer
    08-21 23:33:39.103   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.13 cannot be handled by hwcomposer
    08-21 23:33:39.119   391   391 W Layer   : [Splash Screen org.qtproject.example.card_helper#0] opaque layer with plane alpha:0.03 cannot be handled by hwcomposer
    08-21 23:33:39.137   391  1004 I BufferQueueProducer: [Splash Screen org.qtproject.example.card_helper#0](this:0xa6c12000,id:1293,api:2,p:955,c:391) disconnect(P): api 2
    08-21 23:33:39.151   391   391 I BufferQueueConsumer: [Splash Screen org.qtproject.example.card_helper#0](this:0xa6c12000,id:1293,api:2,p:-1,c:-1) disconnect(C)
    08-21 23:33:39.151   391  1004 E SurfaceFlinger: Failed to find layer (Splash Screen org.qtproject.example.card_helper#0) in layer parent (no-parent).
    08-21 23:33:39.152   391  1004 I BufferQueue: [Splash Screen org.qtproject.example.card_helper#0](this:0xa6c12000,id:1293,api:2,p:-1,c:-1) ~BufferQueueCore
    08-21 23:33:39.337 24755 24865 W linker  : "/data/data/org.qtproject.example.card_helper/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:39.451 24755 24865 W linker  : "/data/data/org.qtproject.example.card_helper/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so" has unsupported flags DT_FLAGS_1=0x80
    08-21 23:33:39.652   391   391 I SurfaceFlinger: screenshot (org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0)
    08-21 23:33:39.669  2009  3929 D GameBoosterService: onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10047, mForegroundPid=1267, mLastForegroundPackageName='org.qtproject.example.card_helper', mLastForegroundUid=10166, mLastForegroundPid=24755, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
    08-21 23:33:39.886   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.89 cannot be handled by hwcomposer
    08-21 23:33:39.899   391  1004 I BufferQueueProducer: [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0](this:0xa6c60000,id:1294,api:1,p:24755,c:391) disconnect(P): api 1
    08-21 23:33:39.918   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.52 cannot be handled by hwcomposer
    08-21 23:33:39.935   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.39 cannot be handled by hwcomposer
    08-21 23:33:39.950   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.27 cannot be handled by hwcomposer
    08-21 23:33:39.979   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.19 cannot be handled by hwcomposer
    08-21 23:33:39.986   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.12 cannot be handled by hwcomposer
    08-21 23:33:40.000   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.07 cannot be handled by hwcomposer
    08-21 23:33:40.043   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.04 cannot be handled by hwcomposer
    08-21 23:33:40.051   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.02 cannot be handled by hwcomposer
    08-21 23:33:40.065   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.01 cannot be handled by hwcomposer
    08-21 23:33:40.081   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.00 cannot be handled by hwcomposer
    08-21 23:33:40.098   391   391 W Layer   : [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0] opaque layer with plane alpha:0.00 cannot be handled by hwcomposer
    08-21 23:33:40.476   955  1047 W InputDispatcher: channel 'f413635 org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
    08-21 23:33:40.476   955  1047 E InputDispatcher: channel 'f413635 org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    08-21 23:33:40.477   955  2002 W InputDispatcher: Attempted to unregister already unregistered input channel 'f413635 org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity (server)'
    08-21 23:33:40.480  1997  2348 D PowerKeeper.Event: notifyAMProcDied pacakageName: org.qtproject.example.card_helper, pid:24755
    08-21 23:33:40.488   391   391 I BufferQueueConsumer: [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0](this:0xa6c60000,id:1294,api:1,p:-1,c:-1) disconnect(C)
    08-21 23:33:40.489   391   391 I BufferQueue: [org.qtproject.example.card_helper/org.qtproject.qt5.android.bindings.QtActivity#0](this:0xa6c60000,id:1294,api:1,p:-1,c:-1) ~BufferQueueCore
    

    Full source code
    https://github.com/homdx/qt-cpp-qml

    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