I wanted to implement a file search function in my Android application and I am wondering how can i get value of "PATH" environment variable from within my program?
Map<String, String> variables = System.getenv();
Iterate through keylist, if PATH exists, findout corresponding value from the map. see this link if it helps.
.. or you can run adb
adb shell echo \$PATH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With