Skip to main content

phoneME advanced, config dialog

8 replies [Last post]
jldominguez
Offline
Joined: 2008-01-02
Points: 0

Hello, I have seen that recent versions of phoneME advanced include a miniapp to choose the settings regarding system bars, etc.

Three comments:

- Congratulations and thanks for that flexibility

- Where are you storing the settings? We'd like to provide the binaries of phoneME along with our app, so we need to change those settings before packaging everything.

- I have experienced a strange behavior: I installed our app and phoneme, then started the app and the top of our app was hidden under the system's top bar, then I changed settings with config and everything was ok, and interestingly, I think I cannot go back to the bad settings now.

Regards,
Juan Lucas

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mkant
Offline
Joined: 2010-02-03
Points: 0

Hello, I am a little bit confusing.

on my test mobile device, the registry entries exists.

Now I install th cab for a CDC application on a new phone. But I doesn't find the registry entries?

What I have to do for this?

I don't know what I have do on the test mobile device for this.

Tahnk you.

Best regards.

Mathias

mkant
Offline
Joined: 2010-02-03
Points: 0

I have to open the phoneme application first. then the entries are there.

konstantin_p
Offline
Joined: 2010-04-21
Points: 0

hi, if you packaging PhoneME into cab-file: you could create a cab, that will set the registry values during installation, thus preconfiguring the java-machine. Microsoft CAB Wizard could help for instance.

jldominguez
Offline
Joined: 2008-01-02
Points: 0

Thanks! Yes, you are right:

http://www.hjgode.de/dev/imec/Making%20a%20CAB%20file.htm
(AddReg section, almost at the bottom)

Davy, can you give us an example of the variables you have added?

Regards,
Juan Lucas

davyp
Offline
Joined: 2007-01-03
Points: 0

I use the following boolean keys in HKLM\Software\Apps\phoneME:

* useConsole
* showTaskBar
* showMenuBar
* showSIPButton
* disablePermissionChecks

These keys are set by the config application and read by the VM at startup.
Here is an inf file I use to create the cab file of a CDC stack:

[Version]
Signature="$Windows NT$"
CESignature="$Windows CE$"
Provider=%CompanyName%

[CEDevice]
VersionMin=3.00
VersionMax=6.99
BuildMax=0xE0000000
;this ensures that you do not get the "this app may not run on this version of windows Mobile" warning

[DefaultInstall]
CESETUPDLL="setupdll.dll"
AddReg=RegKeys
CopyFiles=Files1,Files2,Files3,Files4,Files5,Files6,Files7,Files8,Files9,Files10
CEShortcuts=Shortcuts

[SourceDisksNames]
1=,"Files1",, ".\phoneme\cdc\"
2=,"Files2",, ".\phoneme\cdc\bin\"
3=,"Files3",, ".\phoneme\cdc\lib\"
4=,"Files4",, ".\phoneme\cdc\lib\security\"
5=,"Files5",, ".\phoneme\cdc\lib\profiler\"
6=,"Files6",, ".\phoneme\cdc\lib\profiler\lib\"
7=,"Files7",, ".\phoneme\cdc\lib\zi\"
8=,"Files8",, ".\phoneme\cdc\lib\zi\Asia\"
9=,"Files9",, ".\phoneme\cdc\lib\zi\America\"
10=,"Files10",, ".\phoneme\cdc\legal\"

[SourceDisksFiles]
"testclasses.zip" = 1
"setupdll.dll" = 1
"democlasses.jar" = 1
"java_crw_demo.dll" = 2
"jvmtihprof.dll" = 2
"jdwp.dll" = 2
"config.exe" = 2
"dt_socket.dll" = 2
"cvm.exe" = 2
"profilerinterface.dll" = 2
"phoneME.exe" = 2
"cvmi.dll" = 2
"java_crw_demo.jar" = 3
"content-types.properties" = 3
"jvm.hprof.txt" = 3
"tzmappings" = 3
"rt.jar" = 3
"btclasses.zip" = 3
"java.policy" = 4
"java.security" = 4
"jfluid-server-cvm.jar" = 6
"jfluid-server.jar" = 6
"tzmappings" = 6
"ZoneInfoMappings" = 7
"GMT" = 7
"Novosibirsk" = 8
"Calcutta" = 8
"Los_Angeles" = 9
"copyright.txt" = 10
"thirdpartylicensereadme.txt" = 10
"license.txt" = 10

[DestinationDirs]
Shortcuts =,%CE11% ; create shortcut in \Windows\Start Menu\Programs
Files1 = 0,"%InstallDir%"
Files2 = 0,"%InstallDir%\bin"
Files3 = 0,"%InstallDir%\lib"
Files4 = 0,"%InstallDir%\lib\security"
Files5 = 0,"%InstallDir%\lib\profiler"
Files6 = 0,"%InstallDir%\lib\profiler\lib"
Files7 = 0,"%InstallDir%\lib\zi"
Files8 = 0,"%InstallDir%\lib\zi\Asia"
Files9 = 0,"%InstallDir%\lib\zi\America"
Files10 = 0,"%InstallDir%\legal"

[Files1]
"testclasses.zip","testclasses.zip",,0
"setupdll.dll","setupdll.dll",,0
"democlasses.jar","democlasses.jar",,0

[Files2]
"java_crw_demo.dll","java_crw_demo.dll",,0
"jvmtihprof.dll","jvmtihprof.dll",,0
"jdwp.dll","jdwp.dll",,0
"config.exe","config.exe",,0
"dt_socket.dll","dt_socket.dll",,0
"cvm.exe","cvm.exe",,0
"profilerinterface.dll","profilerinterface.dll",,0
"phoneME.exe","phoneME.exe",,0
"cvmi.dll","cvmi.dll",,0

[Files3]
"java_crw_demo.jar","java_crw_demo.jar",,0
"content-types.properties","content-types.properties",,0
"jvm.hprof.txt","jvm.hprof.txt",,0
"tzmappings","tzmappings",,0
"rt.jar","rt.jar",,0
"btclasses.zip","btclasses.zip",,0

[Files4]
"java.policy","java.policy",,0
"java.security","java.security",,0

[Files5]

[Files6]
"jfluid-server-cvm.jar","jfluid-server-cvm.jar",,0
"jfluid-server.jar","jfluid-server.jar",,0
"tzmappings","tzmappings",,0

[Files7]
"ZoneInfoMappings","ZoneInfoMappings",,0
"GMT","GMT",,0

[Files8]
"Novosibirsk","Novosibirsk",,0
"Calcutta","Calcutta",,0

[Files9]
"Los_Angeles","Los_Angeles",,0

[Files10]
"copyright.txt","copyright.txt",,0
"thirdpartylicensereadme.txt","thirdpartylicensereadme.txt",,0
"license.txt","license.txt",,0

[Shortcuts]
%AppName%,0,"cvm.exe"

[CEStrings]
InstallDir=%CE1%\%AppName%
AppName="pMEA CDC"

[Strings]
CompanyName="D.Preuveneers"

[RegKeys]
"HKLM","Software\%CompanyName%\%AppName%","InstallDir","0x00000000","%InstallDir%"

Regards,
Davy

davyp
Offline
Joined: 2007-01-03
Points: 0

Yes, I quickly hacked together a simple application to override showing the SIP button and
doing stuff in full screen. I noticed that the sources of that application were already on my
site but not visible from the website itself. Here is a link to the sources:

http://www.cs.kuleuven.be/~davy/phoneme/?q=node/26

The registry keys are set in HKEY_LOCAL_MACHINE\Software\Apps\phoneME and the
key/value pairs include:
-useConsole
-showTaskBar
-showMenuBar
-showSIPButton
-disablePermissionChecks

The last property only makes sense for phoneME Feature, whereas the first is mostly
relevant for the phoneME Advanced stack.

Davy

mkant
Offline
Joined: 2010-02-03
Points: 0

Hello,

is there a possibility to change the registry keys from the java code?
Or can I call your program with parameters?

Best regards,

Mahias

davyp
Offline
Joined: 2007-01-03
Points: 0

No, this is very device and OS specific, so there are no standardized APIs to do this.
Again, you could create a JNI wrapper for the WinCE registry methods.

The config application does not have any command line parameters, but the sources are
available at http://www.cs.kuleuven.be/~davy/phoneme/?q=node/26

Note that you would have to restart the VM anyhow for the visual changes to take effect.

Davy