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. Somebody have succeeded in Android Market registration?

Hi forks,

http://market.android.com/publish is now available for developers. I try
complete registration of Android Market. But that haven't succeeded.

The Android Market site says, "Waiting for Google Checkout payment
confirmation...".
And Google Checkout says, "Thanks for your interest in publishing your
applications to Android Market. Please return to the Android Market
Developer Site to finish your registration."

Somebody have succeeded in developer registration?

-- 
C-LIS CO., LTD.
Keiji Ariyama <[EMAIL PROTECTED]>


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

2. Idea: map an on-screen "back" button the upper right corner of the screen

The way the T-Mobile G1 is made, it's almost impossible to use it
completely with one hand in vertical mode because the back button is
way down at the bottom and difficult for the thumb to reach.

I say "almost impossible" because the only answer that I've found is
to flip the phone 180 degrees, so it is upside down with the screen
facing up, hit the back button with my thumb, and then flip it again
back to the normal position. While I have become quite adept at this,
it is a) ridiculous and beneath my diginity :o) and b) it's only a
matter of time before I drop it onto the subway tracks or into the
oncoming path of a steamroller.

As a solution, I propose a simple application that will turn the upper
right corner, approximately where the time is, into a back button.
That's it. Nothing else. That space does nothing right now except
flash the date and the windowshade, and it could still do that.

I don't know the first thing about building apps for Android, or else
I'd do it myself.

This humble idea is free for the taking. I make no claims on it. Code
with speed, my good people!
--~--~---------~--~----~------------~-------~--~----~

3. Uploads disabled in browser

4. displaying a simple MessageBox

5. Streaming Media to Android Success!!!!

6. How to get the picture(like a .jpg picture) in Android?

7. 'Keytool error' when building