B4A Class GetProp: read device properties

Hello guys,
with this simple class you can retrieve (read only) device properties stored on the device.
The device properties are stored as a pair of Key/Value in string format and is very similar to windows registry.
The number of properties is different from one device to another and some of these could be really useful and some not.
In the attached full working example you can see all properties in your device.
The example contains the class fully commented.

Edit 2015/07/13 added a second example for IP infos only

Read here for more info:
http://rxwen.blogspot.se/2010/01/android-property-system.html
 

Attachments

  • GetPropExample.zip
    14.4 KB · Views: 266
  • getprop_IP_example.zip
    11.3 KB · Views: 208
Last edited:

cambopad

Active Member
Licensed User
Longtime User
Nice! I tried it, but it cannot show the IP?

2015-07-11_161938.png
 

cambopad

Active Member
Licensed User
Longtime User
Hi, in my phone it show data from the last wifi connection, in my tablet i get same result as you. The example is 'as it is' and in some cases the result my vary (i haven't tried to disabile and enable WiFi again, for example)

So is it reliable to display the ip of the phone or tablet?
 
Top