Execute setprop command from application

by Giorgio M. » Wed, 04 Mar 2009 02:01:04 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


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



Other Threads

1. [WTA] apk buat njalanin file .jar di android

maaf suhu-suhu mengganggu makan siang anda :p

mau numpang tanya, cara njalanin aplikasi .jar di android gimana ya??
dulu pas hh belum di root masih ada aplikasi java me, tapi setelah jadi CM
jadi ilang deh semua..
ada yang punya apk java me nya??atau apk buat njalanin file tersebut??
hh saya spica CM6 a8.3
terimakasur atas perhatiannya ,maaf klo repost ^^

-- 
===============

2. Process is getting killed during Mass Storage USB connected

Hi All,

I have an application which is using sdcard (reading data from
sdcard). When I have kept my application open and If i connect my
phone to pc as mass storage device android is killing my application.
It is very true as I am using sdcard and android system wants to
unmount the sdcard It must close all application. The point is how
will my application know that system is killing my application so that
I can properly exit.

I am not getting any of the action listed below because before getting
all this intent system is killing my application as my app using
sdcard.
IntentFilter intentFilter = new
IntentFilter(Intent.ACTION_MEDIA_MOUNTED);
intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED);
intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED);
intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED);
intentFilter.addAction(Intent.ACTION_MEDIA_CHECKING);
intentFilter.addAction(Intent.ACTION_MEDIA_EJECT);

So is there any way to overcome it? May any signal catching calls in
JAVA?

Regards,
Niral

-- 

3. about wifi porting

4. Access dial-pad during a call!

5. Smooth OpenGL movement and animation tips.

6. Difficulty updating Android SDK

7. ROM DHD