[android-developers] Re: System.setProperty() cannot change system property in Android

2009-09-22 Thread Mark Murphy
> > I use Java API "System.setProperty()" to set a system property. After > invoke "System.setProperty()", API "System.getProperty()" can return > the value just I set. However, when I use command "adb shell getprop" > to verify, it shows that this property is not set at all. > Do I wrongly unde

[android-developers] Re: System.setProperty() cannot change system property in Android

2009-09-23 Thread xeagle
Thanks! Is there any other java API which can change system property? On Sep 23, 1:20 pm, "Mark Murphy" wrote: > > I use Java API "System.setProperty()" to set a system property.  After > > invoke "System.setProperty()", API "System.getProperty()" can return > > the value just I set. However, wh

[android-developers] Re: System.setProperty() cannot change system property in Android

2009-09-23 Thread Mark Murphy
> Is there any other java API which can change system property? Not that I am aware of. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: System.setProperty() cannot change system property in Android

2009-09-23 Thread Yuan-Fu
Using SystemProperties.set("prop", val) in Java Layer from "android.os.SystemProperties" System.setProperty() is Proerty about java runtime in this process, not equal to android property.. On 9月23日, 下午1時20分, "Mark Murphy" wrote: > > I use Java API "System.setProperty()" to set a system proper

[android-developers] Re: System.setProperty() cannot change system property in Android

2009-09-23 Thread Dianne Hackborn
That is not a public API. On Tue, Sep 22, 2009 at 10:45 PM, Yuan-Fu wrote: > > Using SystemProperties.set("prop", val) in Java Layer > > from "android.os.SystemProperties" > > System.setProperty() is Proerty about java runtime in this process, > not equal to android property.. > > > On 9月23日, 下午

[android-developers] Re: System.setProperty() cannot change system property in Android

2009-10-22 Thread Mikhail G
Dianne, Does this mean I can't use SystemProperties.set("prop", val); to change system property from java application. I'm trying to use the new property I created. What's the catch here? Thanks, Mikhail. On Sep 23, 1:59 pm, Dianne Hackborn wrote: > That is not a public API. > > > > > > On

[android-developers] Re: System.setProperty() cannot change system property in Android

2009-10-22 Thread Dianne Hackborn
Correct, this is not a public API. Please do not use it. System properties are not for applications to use. On Thu, Oct 22, 2009 at 7:30 AM, Mikhail G wrote: > > Dianne, > > Does this mean I can't use SystemProperties.set("prop", val); to > change system property from java application. > I'm tr