Calling native function from android broadcast receiver
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.app.background_running" android:value="false" />
<meta-data android:name="android.app.background_running" android:value="true" />
does not work either
I have 2 questions:
- Can a Qt application runs in background with an AlarmManager?
- Can I call a C++ function in android broadcast receiver?