Execute setprop from application

by Giorgio M. » Wed, 04 Mar 2009 02:01:27 GMT

Sponsored Links
 I have to execute the shell command

setprop net.dns1 xxx.xxx.xxx.xxx

from an android activity but i can't find a working way to do it.

How can i execute this command from the application?


Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com


Execute setprop from application

by Dianne Hackborn » Wed, 04 Mar 2009 04:16:07 GMT

 Sorry, you can't.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


Sponsored Links

Execute setprop from application

by hengli cui » Wed, 04 Mar 2009 10:58:10 GMT

 You can try SystemProperties.set().

2009/3/4 Dianne Hackborn <hack...@android.com>


Execute setprop from application

by Long » Thu, 05 Mar 2009 09:12:34 GMT

 Your AP don't have root permission to do it.
Try using a booting exist "excutable" to do it.


Other Threads

1. When does my thread die (continued discussion)

You should probably stop the service in onStop().  When you press home, the
activity will be stopped but not destroyed because the user didn't close it.

Also, if you really just want to do work while this particular activity is
in the foreground, there is no need to use a service.  The only reason to
use a service is to keep your process running while none of its activities
are in the foreground.


2. help with font size

hi all,

i have to get the height of the text for i have specified the text size. is
this possible?

i need to get the width using the Paint object and without.

thanks in advance.


3. Set Ringtone

4. HttpsUrlConnection Problem

5. Playing video files

6. TextView (with ClickableSpans) in a ListView

7. International characters in basic FilterQueryProvider popup