views:

57

answers:

1

Hi

  1. How to get Batery status ?

  2. How to Debug Webservice through Windows mobile ?

  3. How to Get any File Size & Creation Date ?

thank's for any help

+1  A: 
  1. Microsoft.WindowsMobile.Status.SystemState.PowerBatteryStrength
  2. I use ActiveSync with the service on the desktop and the client on the device, and using the address 169.254.2.2:8888 for the endpoint of the desktop.
  3. Do File.Open("\path\to\file").Length / File.GetCreationTime("\path\to\file") work?
codekaizen
thank's for the answer1. how to do it ? don't work2. I need to wright my IP:8888 ?3. thank's it work
Gold
1. It's a property. Just read it. It returns a BatteryLevel value which tells you approximately how much is left.2. With ActiveSync, the device always has IP 169.254.2.1 and the host always has 169.254.2.2. If you run 'ipconfig /all' from a command line on your desktop when your device is teathered, you should see this as a connection called "Microsoft Windows Mobile Remote Adapter".
codekaizen