Calling native function from android broadcast receiver

  • Hi.
    I have a Qt application which runs a service, that schedules an android AlarmManager broadcast receiver.
    When AlarmManager receives its broad cast, It calls a C++ function.
    I correctly registered a C++ function in main.cpp file, but I can not call that function from that broadcast receiver and application crashes.
    Error says: java.lang.UnsatisfiedLinkError: Native method not found

    <meta-data android:name="" android:value="false" />
    <meta-data android:name="" android:value="true" />
    does not work either

    I have 2 questions:

    1. Can a Qt application runs in background with an AlarmManager?
    2. Can I call a C++ function in android broadcast receiver?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.