Jul 10, 2015 Replies: 5 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 GetPropExample.zip 14.4 KB · Views: 518 getprop_IP_example.zip getprop_IP_example.zip 11.3 KB · Views: 459 Last edited: Jul 13, 2015 Click to expand...
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
cambopad Active Member Licensed User Longtime User Jul 11, 2015 #2 Nice! I tried it, but it cannot show the IP?
DavideV Active Member Licensed User Longtime User Jul 11, 2015 #3 cambopad said: Nice! I tried it, but it cannot show the IP? View attachment 35818 Click to expand... 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)
cambopad said: Nice! I tried it, but it cannot show the IP? View attachment 35818 Click to expand... 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)
cambopad Active Member Licensed User Longtime User Jul 13, 2015 #4 DavideV said: 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) Click to expand... So is it reliable to display the ip of the phone or tablet?
DavideV said: 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) Click to expand... So is it reliable to display the ip of the phone or tablet?
DavideV Active Member Licensed User Longtime User Jul 13, 2015 #5 cambopad said: So is it reliable to display the ip of the phone or tablet? Click to expand... Try the other example i just added in the first post. Note that there is more simple code over there to do the same if you only need the device IP. Bye
cambopad said: So is it reliable to display the ip of the phone or tablet? Click to expand... Try the other example i just added in the first post. Note that there is more simple code over there to do the same if you only need the device IP. Bye
cambopad Active Member Licensed User Longtime User Jul 14, 2015 #6 Thanks you! I will try your example!