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: 330
  • getprop_IP_example.zip
    11.3 KB · Views: 286
Last edited:

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?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…