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?

thanks

-- 
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
hack...@android.com

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. gdata calendar not working with android.

Dear,

i am using Android API level 3. Using g-data 1.41.3 version.
i am using Calendar Sample.
my code is follows:

                try {
                CalendarService service = new CalendarService("demo-
CalendarFeedDemo-1");
                service.setUserCredentials(userName, userPassword);
                CalendarFeed resultFeed = service.getFeed(feedUrl,
                                        CalendarFeed.class);
                } catch (Exception e) {
                        // Invalid credentials
                        e.printStackTrace();
                }

android application throwing exception on getFeed() method. The
exception is as follows:

java.lang.VerifyError:
com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory
$SecureSAXParserFactory

insert, delete and update Calendar. But i am facing problem that  i
mention above.

Is it possible to delete, insert and update Android Calendar and
Events?

-- 

2. Change Message Content before Save.

Hi All,


I need to change Text( SMS) message content before save in in-box. Is it
possible to change text message content in BroadcastReceiver?



Chandana

-- 

3. Tamil Fonts in android 2.1

4. HttpURLConnection with local network, socket time up

5. Populating the groups table in contacts2.db

6. help connecting my app to an external Mysql DB

7. GUI Design Patterns of the Twitter Client presented at Google I/O