Hi,
I had the same effect when interacting with the home screen on my N97. It too tries to start my python application whenever the user interacts with its widget on the home screen. And in that scenario too I get a UI that is empty. After a bit of debugging it turns out that in Python_appui.cpp the commented out line below should be replaced by the line that comes after it:
Code:
TBool CAmarettoAppUi::ProcessCommandParametersL(TApaCommand aCommand,
TFileName& /*aDocumentName*/,
const TDesC8& /*aTail*/)
{
// if (aCommand == EApaCommandRun) {
if ((aCommand == EApaCommandRun) || (aCommand == EApaCommandBackground)) {
So, assuming the cause is the same in your case, there may be two things you can do:
- see if you can send the EApaCommandRun command instead of the EApaCommandBackground command to the app
- or, if like in my case you can't change that and you're *really* desperate:
a) rebuild Python_ui, but change the LIT at the top of Python_ui.cpp to _LIT(KUiDLL, "kf_Python_appui_custom.dll");
b) rebuild appui, where you change the code as described above and change the ouput filename in the mmp file to kf_Python_appui_custom.dll
c) replace the <your_app_name_here>.exe in the SIS with the rebuilt python_ui.exe (don't forget to run ensymble altere32 on this)
d) add kf_Python_appui_custom.dll to the SIS, to be installed in \sys\bin
It is simple, really