Launching of AVKON_DATA_QUERY dialog in console base application.
| Fri, 2008-04-11 13:28 | |
|
Hi all, Can any one tell me how to launch dialog in console base application. My code is written below. I want to launch password dialog at TBuf<20> answer; RWsSession iWsSession; User::LeaveIfError(iWsSession.Connect()); //Console->Printf(KAppName); } KInstallerUidin3rdEd.iUid = iUid; TApaTaskList taskList(iWsSession); TApaTask aTask = taskList.FindApp(KInstallerUidin3rdEd); Thanks NEWBIE OF SYMBIAN |
|






Forum posts: 128
Hi,
To display data query you need to write in .rss file of your application and handle in AppUI of your application. you can check query example for more details.
Thanks & Regards
Ram
Symbian OS 9.1,S60 3rd edition MR,and CodeWarrior 3.1
Forum posts: 1134
You need the application framework in your thread to be able to use the dialogs.
Since you say you write a console application I assume you don't have it.
If you want to use dialogs and windows and controls, the easiest is to simply create the set of minimal app classes (appui, app, appdocument) and start the appframework with a call to "NewApplication" just as in a normal application.
It is also at least theoretically possible to create ccoeenv, ceikonenv, etc separately from scratch, but really, I wouldn't recommend it.
Even with access to the source code of the real app framework available, its a mess to do (I've tried), and will take a very long time to get right, and you will probably find you sit there with most of the app framework initialized anyway.