Android device properties are got at two levels one at android shell level and another at application level differently
<p>At shell level I use:</p>

<pre><code>adb shell getprop 
</code></pre>

<p>to get properties
If I have to get property information at application level which command am I supposed to use.
I tried </p>

<pre><code>String productname = System.getProperty("ro.product.name")
</code></pre>

<p>and getting no error but It is not returning correct value what could be the reason.</p>