Hi All,
I have a small application and wanted to open the application by pressing 'Pencil' key when the phone is in idle mode (initial screen). Is it possible to open the application by button press event? Please guide me
Thanks,
Hi All,
I have a small application and wanted to open the application by pressing 'Pencil' key when the phone is in idle mode (initial screen). Is it possible to open the application by button press event? Please guide me
Thanks,
Girish_VMX
Hi,
yes it is possible. You need to capture key events on the background by e.g. some non GUI process, which will start your application then (check forum - this was discussed here many times)
See the code snippet here:
http://wiki.forum.nokia.com/index.ph..._thread_or_exe
BR
STeN
Hi Girish,
Search in Wiki for Key Capture.
May this also helps.
Using that capture the pencil key.
Search again on how to open the particular exe or application.
then use that code to open the exe when you have captured pencil key.
Regards,
Kavit.
Thanks for ur kind response.
Key capturing is fine. I wanted to open my application for key press event how do we achieve this? Please advice me
Thanks,
Girish_VMX
Hi,
launching application is also pretty easy and there is plenty of way how to achieve this.
Start the application:
RApaLsSession::StartApp();
Is it is already running, just breing them to foreground:
TApaTask::BringToForeground();
Check SDK, wiki or forum on how to use those methods.
BR
STeN
_LIT(KAppName, "MyApplication.exe");
RProcess process;
process.Create(KAppName,_L(""));
process.Resume();
process.Close();
//
TApaTaskList taskList(CEikonEnv::Static()->WsSession());
TApaTask task = taskList.FindApp(MyUid);
if (task.Exists())
{
task.BringToForeground();
}
else
{
RApaLsSession ApaLsSession;
ApaLsSession.Connect();
CleanupClosePushL(ApaLsSession);
TThreadId thread;
ApaLsSession.StartDocument(_L(""), MyUid, thread);
CleanupStack::PopAndDestroy();
}
Regards
Kamal :)
------------------
You never expect what expects you.