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 <alimooghash...@gmail.com> wrote: > 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 exec(). Command: [echo, 3, >, /proc/sys/vm/drop_caches] > Working Directory: null Environment: null > > please help me > thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en