Skip to content

Sub Classing a WPF Application’s WndProc

Applies to: Product General Platform Windows With the introduction of Windows Presentation Foundation (WPF), developers can now create rich User Interface applications which is preferred by end users. While developing such applications, sometimes there can be a need to intercept the Window messages. This can be achieved easily in Win32 and WinForm applications and one…

Read More

Execute Script Commands on Samsung Devices using SureMDM Nix

Applies to: Product SureMDM/Samsung Nix Platform Android   With SureMDM, you can create jobs (read more) and deploy it to your devices remotely. One of the jobs listed for Android devices is Run Script. With Run Script, you can create a Job to remotely execute script commands on the devices. List of Scripts Commands: 1.Enable KNOX:…

Read More

Command Line Interface and APIs for Surelock

Applies to: Product SureLock Platform Android Surelock uses a BroadcastReceiver to allow 3rd party applications to send specific commands to SureLock. Commands can be send using Intent (See examples below). To execute any command, Administrator password is necessary. SureLock API exit_surelock – This command exits the device from lock down mode. public synchronized void exitSurelock()…

Read More

How to Auto-Play and Loop Audio and Video files in Android?

Applies to: Product General Platform Android The Auto-play and Loop functions in Android is disabled to minimize the user bandwidth however this post may offer you some help if trying to find a quick fix for this problem. All you  have to do is to follow following two easy steps. 1. Use following script for…

Read More

How to exit SureVideo on Android

SureVideo is a kiosk video player which allows you to transform any Android device such as tablet or TV into a dedicated video player. SureVideo is designed to play your videos in kiosk mode and prevents any one from exiting the app other than the authorized person. To exit from SureVideo, follow the steps below: Tap/Click…

Read More

Updating SureLock and SureFox settings remotely using SureMDM

 SureMDM allows you to update SureLock and SureFox settings on your enrolled Android devices remotely. This means no user interaction is required while updating SureLock and SureFox Settings. There are two ways of doing it: 1. Update SureLock/SureFox Settings using inbuilt SureLock/SureFox option 2. Update SureLock and SureFox Settings using SureMDM Jobs   Update SureLock and SureFox Settings…

Read More

SureFox Kiosk Browser for Android adds barcode scanning capability

Applies to: Product SureFox Platform Android SureFox is a popular kiosk browser whose primary feature is to block the users (mobile workers/kiosk users) from accessing any unallowed websites. There are many other reasons for using SureFox. Now, Surefox has a new addition to its feature set. Your web apps can now read or scan barcode…

Read More

Delete File or Folder path in C#

Following is a C# code snippet to delete a path (file or directory). First we have to determine whether the path is a file or a folder and then call appropriate Delete methods. In case of directory, you can specifiy whether the contents should be recursively deleted before deleting the directory. void DeletePath(string path) {…

Read More

C# code to soft reset a Windows Mobile device

Here is the C# code to soft reset a Windows Mobile device (using P/Invoke) [DllImport(“coredll.dll”, SetLastError = true)] static extern int SetSystemPowerState(string psState, int StateFlags, int Options); const int POWER_FORCE = 4096; const int POWER_STATE_RESET = 0x00800000; private void SoftReset() { SetSystemPowerState(null, POWER_STATE_RESET, POWER_FORCE); } Share On:

Read More

How to get information about softwares installed on Windows Mobile devices?

Best method is to ask the configuration service provider (CSP). Step 1: Add Reference to Microsoft.WindowsMobile.Configuration Step 2: Add the following statements at the top of the c# code file. using System.Xml; using Microsoft.WindowsMobile.Configuration; Step 3: Prepare a csp string (xml format) and pass it to ProcessConfiguration method of ConfigurationManager. Return value is the xml…

Read More