Hello,
Among many other users I see in this group, I want to push out notifications to the user from my application.
I also would like to prevent Android to kill my application even if it consumes quite a bit of RAM / CPU.
So I have combined an Android service test app (FakePlayer) and made a test application to acheive this with Qt.
Thus, I have just made an ServiceTest-app from scratch in Necessitas 4.1, and edited QtActivity.java and the AndroidManifest.xml, and added a new file called ServiceTest.java.
When running the test on a device, in my case a Samsung Note II, the app shows correctly and the notification appears correctly.
Now, if pressing the phones home button, the app hides and you may press the notification to get back to the app, which is fine.
But: (after first doing the line above) if you press home and press the ServiceTest icon from the program menu, then only the label of the app shows which is NOT okay.
I guess some layout reference between Android and Qt is missing here, but I am not sure.
Can anyone help me out here?
All files attached, try it out! Alternatively send me a working example or link to it.
Best regards,
Dag Vegar Tveitå