Are you running on a rooted device? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware
On Mon, Jun 17, 2013 at 8:51 AM, Marta Ribeiro < [email protected]> wrote: > 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 [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 > --- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

