Trick: auto start it at the end of installing an application (Symbian)

xiaoxiao2021-03-06  38

FOLLOW the FOLLOWING STEPS:

1.Use Arguments Fr, Ri While Copy your app file.AS Follows:

......

"C: /symbian/uiq_2.1/epoc32/release/thumb/urel/localplayer.app" - "!: / System / apps / localplayer / localplayer.app", fr, ri // usually put this line at the end OF Package File.

2.Bring your application to the foreground.

. Usually at the end of installation, the system will prompt a message to indicate installation complete.This will bring your application into background To bring your application to foreground, override HandleForegroundEventL (TBool aForeground) and add the following code:

IF (! AFOREGROUND)

{

......

Tapatask Task (Ceikonenv :: static () -> wssession ());

Task.Setwgid (Ceikonenv :: Static () -> Rootwin (). Identifier ());

Task.bringtoforeground ();

......

}

转载请注明原文地址:https://www.9cbs.com/read-67931.html

New Post(0)