Re: [android-developers] problem in executing Runtime.getRuntime().exec()

2012-03-12 Thread Justin Anderson
On a rooted device, that "might" work... On all others you are not going to be able to do anything like that. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 12, 2012 at 7:37 AM, Ali wrote: > Hi all > i have an application which needs to clea

[android-developers] problem in executing Runtime.getRuntime().exec()

2012-03-12 Thread Ali
Hi all i have an application which needs to clear the buffer i do this way but it gives error Process p = Runtime.getRuntime().exec("su"); p = Runtime.getRuntime().exec("sync"); p = Runtime.getRuntime().exec("echo 3 > /proc/sys/vm/drop_caches"); error: Error running