Get Your Device Serial Number (ESN)

So this time I got a work to get a Device serial number for some securities purpose. It was not a very big effort to get it done. It was so easy. I have put one sample application to get ESN number. Look into it for your reference.

This code is based on compact framework 3.5. This information is useful when you wanted to get serial number of your mobile device.

Please check the little code below:

  1. //Symbol.ResourceCoordination class  
  2. TerminalInfo terminalIfo = new TerminalInfo();  
  3. if (!string.IsNullOrEmpty(terminalIfo.ESN))  
  4. {  
  5.    label1.Text = terminalIfo.ESN;  
  6. }  
  7. else  
  8. {  
  9.    label1.Text = "Not able to Get ESN";  
  10. }  
Note: You need to refer Symbol & Symbol.ResourceCoordination.dll.

 

Ebook Download
View all
Learn
View all