I think you didn't quote enough of the log to know the answer.
Obviously something didn't work when trying to start a trace. Are you on the
device? Have you got a writable SD card inserted? Try to specify
Debug.startMethodTracing("/sdcard/rufio");
On Sat, Mar 28, 2009 at 11:35 PM, William <[email protected]>wrote:
>
> i put this in my oncreate method and get an error, file open failed.
> what am i doing wrong?
> Debug.startMethodTracing("rufio");
>
>
> 03-28 17:32:31.402: ERROR/AndroidRuntime(11951): Uncaught handler:
> thread main exiting due to uncaught exception
> 03-28 17:32:31.432: ERROR/AndroidRuntime(11951):
> java.lang.InternalError: file open failed
> 03-28 17:32:31.432: ERROR/AndroidRuntime(11951): at
> dalvik.system.VMDebug.startMethodTracing(Native Method)
> 03-28 17:32:31.432: ERROR/AndroidRuntime(11951): at
> android.os.Debug.startMethodTracing(Debug.java:357)
> 03-28 17:32:31.432: ERROR/AndroidRuntime(11951): at
> android.os.Debug.startMethodTracing(Debug.java:305)
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---