| Reply | « Previous Thread | Next Thread » |
|
Hello. Once 1.4.4 have been released and notes using globalui work perfectly, I would like to improve my application.
What I want to do is have a listener always running that shows a note when SMS is received. I´m able to do it when the listener is running in foreground or in background (because I pressed symbian menu button or something). What I want to do is have this listener apart from my main app always running in background, even if I close the main app. I dont know yet how (neither if its possible) to run 2 scripts at the same time, one of them always in background. Any help, tip or info about that? Thank you very much. |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
|
Quote:
why dont you use something like a daemon process. I think it will be helpful to you. Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Quote:
|
|
Quote:
How to execute another script from a script Or may be you can have 2 python applications, one calling the another. Best Regards, Croozeus |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
|
Quote:
really sad that didnt worked for you. I faced similar problem once and i got the solution accidentally in the forum there was a post regarding threads which explained scope of threads i am actually not getting that post in the search better you also try for that. Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Thank you both for helping.
Also have the same problem with calling one script from another. I think I´m misunderstunding how does interpreter work, and I´m trying to make something non-sense. When you select python in installed programs, you open a console where you can run scripts. I have some questions about that "console". Can you run a script directly, no needing to "Open the console->Options->RunScript->select the script"? (I read something about .py to SIS, ensymble, etc: Only yes or no and some keyword to search are enough) When a script is running, and I press Symbian menu button, I it seems to get minimized. When i open the console again it keeps the previous status. When i close it with the red hang-on button, or with exit button, it doesn´t happen. Why? I want to always have the minimizing behaviour. Can I do it?? Thank you very much again ![]() |
|
The Python Shell is just a small Symbian C++ application that loads the Python interpreter and starts a default.py script found in the app's directory. This script sets up the menu to include the options to start a script or a interactive console.
You can write your own default.py and build a standalone application in the same way. This is done using Ensymble. The tool is very user friendly so you shouldn't have much problems with it. It will create a sis file for you that you can simply install on your phone to get a separate icon for your script in the menu. As for running a script in background. The PyS60 docs for the e32 module say: Quote:
Good luck! |
|
As for the red key behaviour. There are two ways to change that. Either you will have to install the envy module and use its capability to make your app a system app (which means it will close only when it chooses to do so, never by the OS itself) or you can use the trick discussed not long ago in this thread.
|
|
Quote:
start_server and post the results (and probably more questions). |
|
Hello. I´m back again with some more problems. What I want to do now, is send to foreground my minimized app. I´ll explain.
When a global note is displayed and my app is in foreground I get the desired funcionality, my app loads new contents. When my app is in background and the global note is displayed, the app loads the new contents, but it keeps in background and I have to open it again to see it. What I need is a way to open my app without having to open it again manually. Any help? Thx |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
|
Quote:
You could try appswitch from Cyke64's page. It's for switching applications from background to foreground and vice versa. See this article for instructions. |
|
THx. I had already tried to install it on the emulator but get an "expired certificate" and cant install it.
|
|
Quote:
Or 2) Just set the date 1 year back and it would install! Br, Croozeus |
|
HI.....please help me with a problem in windows mobile(platform j2me)....
i have an application which writes a file locally in the mobile every 30 seconds with new entries in append mode,now when i exit the application and view my file every thing is fine.........now what i need is to view the file manually at runtime when the application is still running,when i try to view the file manually when the application is still running,i find that there are no entries or less entries in my file,that is the file gets disturb.....is it possible to read the file manually in background with no issues... |
| TechThirsty |
| View Public Profile |
| Find all posts by TechThirsty |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
|
Quote:
Welcome to forum nokia dibo. ![]() I guess you are in wrong place to ask the question this is discussion boards for nokia S60,S40 devices. Regards Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Graphics in background Python processes? | canopus961 | Python | 8 | 2008-07-21 22:31 |
| Background processes | njbuch | General Symbian C++ | 2 | 2006-03-09 08:45 |
| Background processes | njbuch | Mobile Java General | 1 | 2006-03-09 04:06 |
| Background Processes | ask@nokia | Mobile Java General | 1 | 2004-06-23 08:36 |
| BackGround Processes & Push Registry | isseyp | Mobile Java General | 0 | 2004-05-09 07:36 |