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. XML Layout Language

Does anyone know a link to the specification for the XML Layout?  I'm
looking for a description of the tags etc.  Since I'm new and just
learning, a simplified version would be nice, focusing on the most
common tags.  Everything I read now is vague.

If not, here's some questions I have that are more specific.


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical" >
    <TextView android:id="@+id/text"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Hello, I am a TextView" />
    <Button android:id="@+id/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Hello, I am a Button" />
</LinearLayout>

- What does xmlns mean?
- What is the android: sytnax all about?
- What does the "http://schemas.android.com/apk/res/android" do?
- Can you create your own Layouts like the "LinearLayout"?
- Is there a list of available components like "Button", "TextView"?
- What does the @ symbol do?
- Can I edit this directly in Eclipse with a graphical editor rather
than manipulating text?

I'm sure these are probably simple questions answered somewhere, but I
just can't find the specification and I'm so new I don't seem to be
able to find the info.

Thanks for any hints.

--~--~---------~--~----~------------~-------~--~----~

2. Displaying Web Content Using Java Android Application

Can someone help? I have looked at this problem and most solutions use
servlets, etc. Can someone show me a straightforward way using Java
and XML? What I want to learn is how the web content is called, how
the connection is handled, and how the content is displayed.

Thanks.
--~--~---------~--~----~------------~-------~--~----~

3. Problem with Convert Project in Eclipse Plugin

4. Port Android to an M-88 Miphone

5. How firmware update and Application update work through OTA work?

6. Problem with Convert Project in Eclipse Plugin

7. play audio from resource during call