Environment variables will only be visible in processes descending from
the process that sets them.  Since the app processes in android aren't
spawned from your daemon, you won't be able to see the environment
variables there.


Charles Lu wrote:
> Hi,
>
>     I wish to get the environment variable which is set by a daemon in
> native but failed. Some details:
> in the daemon, which is started by root
> setenv("MY_NAME", name, 1);
>
> in java code, which is started by system
> String name = System.getenv("MY_NAME);
>
>   Could anybody give some suggestion?
>
> Thanks
> Charles
> >   


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