Hi All,
I am trying to get property which I set in init.rc in Java app.
But it always return null.
Java code:
String value= System.getProperty("ro.MY_PROPERTY");
Log.i(TAG, "ro.MY_PROPERTY get"+value);
init.rc:
setprop ro.MY_PROPERTY 1
I have check "getprop ro.MY_PROPERTY" in console, it do return "1".
But not know why cannot get it in Java app.
Thanks for your replay.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---