It's impossible.
Unless you have a JNI which is special case of Java...

On Mar 18, 12:40 am, Sun Ray-B17777 <[email protected]> wrote:
> Hi All,
>
> I want to set the property in Java code and get the property in C code. Is 
> this available?
>
> What I used is as below:
>
> 1.       Set the  property to 0x2
>                                   mPowerControl = getInt(POWER_CONFIG, 
> 0x0);//get the configuration value of power
>                                   System.setProperty("rw.power.config", 
> String.valueOf(mPowerControl));
>
> 2.       Get the property, always  to be 1, as I set in the init.rc
> property_get("rw.power.config", propBuf, "0");)
>
> 3.       Get the property through adb shell, it's same with the value by 
> property_get
> getprop rw.power.config
>
> Thanks,
> Ray

-- 
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

Reply via email to