Back to project page androiddevice.info.
The source code is released under:
GNU General Public License
If you think the Android project androiddevice.info listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.androiddevice.deviceinventory.info; // w w w.j a v a2s . co m import org.json.JSONException; import org.json.JSONObject; import java.util.Map; public class EnvironmentProperty implements Property { @Override public Object getProperty() throws JSONException { JSONObject jsonObject = new JSONObject(); for(Map.Entry<String, String> env:System.getenv().entrySet()) { try { jsonObject.put(env.getKey(), env.getValue()); } catch (JSONException e1) {} } return jsonObject; } @Override public String getName() { return "env"; } }