Press on the image to return to the main documentation page.
ICOSPhone
Written by Giuseppe Salvi
List of types:
ICOSPhone
ICOSPhone
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Permissions:
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_LOCATION
android.permission.ACCESS_GPS
android.permission.ACCESS_ASSISTED_GPS
android.permission.ACCESS_CELL_ID
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_CHECKIN_PROPERTIES
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_WIFI_STATE
android.permission.BLUETOOTH_ADMIN
android.permission.BLUETOOTH
android.permission.BOOT_COMPLETED
android.permission.CALL_PHONE
android.permission.CALL_PRIVILEGED
android.permission.CAMERA
android.permission.CHANGE_WIFI_STATE
android.permission.FLASHLIGHT
android.permission-group.HARDWARE_CONTROLS
android.permission.HARDWARE_TEST
android.permission.INTERNET
android.permission.MODIFY_PHONE_STATE
android.permission.PROCESS_OUTGOING_CALLS
android.permission.READ_PHONE_STATE
android.permission.RECEIVE_SMS
android.permission.READ_SMS
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.SEND_SMS
android.permission.SET_WALLPAPER
android.permission.UPDATE_DEVICE_STATS
android.permission.WAKE_LOCK
android.permission.WRITE_SETTINGS
android.permission.WRITE_SECURE_SETTINGS
android.permission.WRITE_SMS
Events:
None
Members:
AccessWiFiState
As
String
[read only]
AvailMemory
As
String
[read only]
BluetoothOnOff
(BTooth
As
android.graphics.
Bitmap
)
BlueToothSerial
As
String
[read only]
Brightness
As
Float
[write only]
Celsius
As
String
DeviceModel
As
String
[read only]
Farenheit
As
String
GetDisplayMetricsHeight
As
Int
GetDisplayMetricsWidth
As
Int
GPSOnOff
(Gps
As
android.graphics.
Bitmap
)
Initialize
(EventName
As
String
)
IPAddress
As
String
[read only]
LedOnOff
(LedOn
As
android.graphics.
Bitmap
, LedOff
As
android.graphics.
Bitmap
)
Level
As
Float
MacAddres
As
String
[read only]
MakeCall
(Call
As
android.graphics.
Bitmap
)
NetworkOperatorName
As
String
[read only]
OpenGpsSetting
OpenWiFiSettings
OSVersion
As
String
[read only]
SimCardNumber
As
String
[read only]
StartCamera
TotalMemory
As
String
[read only]
UsedMemory
As
String
[read only]
Version
As
Double
[read only]
WiFiOnOff
(WiFiOn
As
android.graphics.
Bitmap
, WiFiOff
As
android.graphics.
Bitmap
)
Members description:
AccessWiFiState
As
String
[read only]
Example:
Dim ph As ICOSPhone
ph.AccessWiFiState
return the AccessWiFiState
AvailMemory
As
String
[read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone
Sub Button1_Click
label1.Text=ph.AvailMemory
End Sub
Return Avail Memory
BluetoothOnOff (BTooth
As
android.graphics.
Bitmap
)
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone
Sub Button1_Click
ph.EnableDisableBluetooth
End Sub
Enable or Disable BlueTooth
BlueToothSerial
As
String
[read only]
Example:
Dim ph As ICOSPhone
ph.BlueToothSerial
If the Bluetooth is on w'll return the serial
Brightness
As
Float
[write only]
Example:
Dim ph As ICOSPhone
ph.Brightness
W'll set the Brightness of your screen
Celsius
As
String
Example:
Dim ph As ICOSPhone
dim Label1 As Label
Label1.Text=ph.TempCelsius
Return the degrees in Celsius of your Battery
DeviceModel
As
String
[read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone
Sub Button1_Click
label1.Text=ph.DeviceModel
End Sub
Display the model of your device
Farenheit
As
String
Example:
Dim ph As ICOSPhone
dim Label1 As Label
Label1.Text=ph.TempFarenheit
Return the degrees in Farenheit of your Battery
GetDisplayMetricsHeight
As
Int
Example:
Dim ph As ICOSPhone
ph.GetDisplayHeight
return the DisplayHeight in pixel (ex. 1024)
GetDisplayMetricsWidth
As
Int
Example:
Dim ph As ICOSPhone
ph.GetDisplayWidth
return the Display Width in pixel (ex. 600)
GPSOnOff (Gps
As
android.graphics.
Bitmap
)
Example:
Dim ph As ICOSPhone
ph.GPSOnOff
W'll start GPS On or Off
Initialize (EventName
As
String
)
Initialize the Object.
Example:
Dim ph As ICOSPhone
ph.Initialize("ph")
IPAddress
As
String
[read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone
Sub Button1_Click
label1.Text=ph.IPAddress
End Sub
Display your IP-Address
LedOnOff (LedOn
As
android.graphics.
Bitmap
, LedOff
As
android.graphics.
Bitmap
)
Example:
Dim ph As ICOSPhone
ph.LedOnOff
Flash Mode On
This W'll turn Flash Mode ON or OFF if is supported.
Level
As
Float
Example:
Dim ph As ICOSPhone
Dim Pb As ProgressBar
Dim Button1 As Button
Sub Button1_Click
pb.Progress=Level
End Sub
Return the amount of level of your Battery
MacAddres
As
String
[read only]
Example:
Dim ph As ICOSPhone
ph.MacAddres
return the MacAddres
MakeCall (Call
As
android.graphics.
Bitmap
)
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone
Sub Button1_Click
ph.MakeCall
End Sub
NetworkOperatorName
As
String
[read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone
Sub Button1_Click
label1.Text=ph.NetworkOperatorName
End Sub
Display the name of your NetworkOperator
OpenGpsSetting
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone
Sub Button1_Click
ph.OpenGpsSetting
End Sub
Open Gps Setting
OpenWiFiSettings
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone
Sub Button1_Click
ph.OpenWifiSettings
End Sub
Open WiFi Settings
OSVersion
As
String
[read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone
Sub Button1_Click
label1.Text=ph.OSVersion
End Sub
Display OSVersion of your device
SimCardNumber
As
String
[read only]
Example:
Dim ph As ICOSPhone
ph.SimCardNumber
return the SimCardNumber
StartCamera
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone
Sub Button1_Click
ph.StartCamera
End Sub
Start On the Camera
TotalMemory
As
String
[read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone
Sub Button1_Click
label1.Text=ph.TotalMemory
End Sub
Return Total Memory
UsedMemory
As
String
[read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone
Sub Button1_Click
label1.Text=ph.UsedMemory
End Sub
Return Used Memory
Version
As
Double
[read only]
Return The Version Of this Library
WiFiOnOff (WiFiOn
As
android.graphics.
Bitmap
, WiFiOff
As
android.graphics.
Bitmap
)
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone
Sub Button1_Click
ph.EnableDisableWiFi
End Sub
Enable / Disable your WIFI
Top