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