I made an app which I want, at the beginning, to perform the following 
commands:

su netfg eth0 up
su netcfg eth0 dhcp

I try the following code in my app:

  Process proc = Runtime.getRuntime().exec(new String[]{"su", "-c", "netcfg 
eth0 up"});
              proc.waitFor();
              
              proc = Runtime.getRuntime().exec(new String[]{"su", "-c", 
"netcfg eth0 dhcp"});
              proc.waitFor();  

Unfortunately, this is not doing anything. Can anyone help me? I would 
really appreciate it.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to