Today I’ve created my first hosted mobile app running on XenApp. It’s no stunning app, but it shows how to handle the API using C#. As an API Reference I’ve used the following site: http://www.citrixcloud.net/mobilesdk/

For development purposes only, I’ve installed the Mobility Pack, XenApp Mobile SDK and Visual Studio 2010 on my XenApp demo server. First I’ve created a new C# Windows Form project and referenced the Interop.CitrixMobility.dll from \bin\x64 to the project.

The goal of my first app is to bring up the virtual device keyboard.

using CitrixMobility;

 private CitrixMobile cmpCom;

 this.cmpCom = new CitrixMobile();
 var comHandle = this.cmpCom as IKeyboard;
 CMP_KEYBOARD_STATE state = new CMP_KEYBOARD_STATE()
 {
    KybdAutoCaps = CMP_KEYBOARD_AUTOCAPS.CMP_KYBD_AUTO_CAPITAL_NONE,
    EditFieldRect = new CMP_DISPLAY_RECT() { Bottom = 0, Left = 0, Right = 0, Top = 0 },
    KybdFlags = 0,
    KybdReturnKey = CMP_KEYBOARD_RETURNKEY.CMP_KYBD_RETURN_KEY_DEFAULT,
    KybdType = CMP_KEYBOARD_TYPE.CMP_KYBD_TYPE_STANDARD
 };
 comHandle.ShowKeyboard(ref state);

After the build process has finished, I’ve published the App using XenApp Delivery Services Console. Stay tuned, in my next exercise I will play with camera interface.

Regards

Christian