| Reply | « Previous Thread | Next Thread » |
|
hello,
i've a little application served by mobile web server on my n95: ... def handler(req): r="" req.content_type = 'text/plain' r = doSomething() req.write(s) return apache.OK is there a way to catch an incoming request and ask for confirmation, e.g. if appuifw.query(u"exec script?","query") == True ... like in an app that would run locally on the phone? any other idea how to confirm incoming requests? thanks + best, uno |
|
Quote:
I hope I understood your question, Well, there are certain application approaches where you might want to request a confirmation from the user when there is an incoming call. Eg. For a call recorder application, whether the user wants the call to be recorded or not? But it will possible only when the call is received, that is once the call is picked up then a confirmation can be requested, This can be done by using the callstatus. Hope it helps. Best Regards Croozeus |
|
thanks croozeus,
but here we have an incoming http-request on the mobile web server, not a phone call. what i want to do is: - mobile web server mws is running on the phone - user connects to an url on the phone, e.g. my.py?action=camera - my.py takes a snapshot and returns it to the requesting client. this works well, but i want to have control, e.g. a confirmation request, so that i (the phone user) can decide whether to let the (web)user take a snapshot or not. would it be possible somehow? it's easy in a local application on the phone with appuifw.query, but is there a way for http-requests? thanks & best regards, uno |
|
Hi unoll,
I have been dealing with the same problem, that is using appuifw library from the mobile web server. Here is a description of how I solved it http://maggi.bablish.com/?p=1 hope it helps. In your case you could have the mobile web server make a call to a function asking for the user permission to take the picture, then take the picture and send the result back. best regards, Magnus |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
ur Pylaunch is great i havnt tried yet but it really sounds excellent. keep it up and have more applications. thankx 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 |
|---|---|---|---|---|
| ImportError: No module named _appuifw | ernesto.ferrari | Mobile Web Server | 9 | 2008-04-18 06:36 |
| Custom request fields with http get/post | browndrf | Mobile Java Networking & Messaging & Security | 2 | 2006-11-08 20:57 |
| HTTP Request Pipelining | shashishaw | Symbian Networking & Messaging | 2 | 2006-08-25 17:24 |
| How can i solve this error? | symbian-newbie | General Symbian C++ | 6 | 2006-05-23 06:33 |
| Getting started with Carbide.vs -- running the app | ET3D | Symbian Tools & SDKs | 6 | 2005-11-23 18:45 |