Mobile
resource.txt
Associated article: Smart clients know their limitations
Tags: Mobile
Published source code accompanying the article by Hari Gopal in which he examines how smart-client applications need to be constantly aware of the changing status of the constrained devices resources. Also see RESOURCE.ZIP.
Resource-Aware Mobile Devices
by Hari Gopal
Listing One
(a) Visual Basic
Imports Infosys.PervasiveIT.ResourceMonitor
...
Try
Dim objBattery As New CBatteryInfo
Dim retVal As Integer
retVal = objBattery.acPwrStatus
If (retVal = 1) Then
MessageBox.Show("Online", "AC Power Status&...


