It is much easier to use the "adb shell am" command to start and stop profiling in a process. Run the command without arguments to get help text. The file you give when profiling can be on the sd card, because the am command takes care of opening it and it has permission to access the SD card.
Otherwise, yes if you want to write your profile data to the sd card (note "fnord" is not on the sd card), then you will need to add the permission to your app and later remove it. On Mon, Aug 16, 2010 at 9:10 PM, James Moore <[email protected]>wrote: > I'm calling Debug.startMethodTracing("fnord") and I'm getting > a java.lang.RuntimeException: file open failed message. > > It looks like I'm supposed to have > the android.permission.WRITE_EXTERNAL_STORAGE permission set. > > But how do you set that permission when you're debugging through Eclipse? > Aren't permissions normally set at install time (which doesn't happen in a > normal way when you're debugging)? > > -- > James Moore > [email protected] > http://jamesmoorecode.blogspot.com/ > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

