Thanks for replying so quickly Romain.
I am using 1.6 indeed.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
did the trick.

Thanks.

On Wed, Oct 7, 2009 at 12:12 PM, Romain Guy <romain...@google.com> wrote:

>
> If you are using 1.6 you need to ask for the permission to write on the
> sdcard.
>
> On Tue, Oct 6, 2009 at 11:15 PM, Android Development
> <indodr...@gmail.com> wrote:
> > Hello,
> > I created a SD card image and mounted it to the emulator. I could see it
> > mounted on the emulator.
> > Then, in my onCreate method, i made a call
> > to  Debug.startMethodTracing("myTrace");
> > When i install the application on the emulator, i get an error as shown
> > below
> > Am i doing something wrong ?
> > -------
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):
> java.lang.RuntimeException:
> > Unable to start activity
> > ComponentInfo{com.client/com.client.MyClientActivity}:
> > java.lang.RuntimeException: file open failed
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> >
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.app.ActivityThread.access$2100(ActivityThread.java:116)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.os.Looper.loop(Looper.java:123)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.app.ActivityThread.main(ActivityThread.java:4203)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> >
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > dalvik.system.NativeStart.main(Native Method)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925): Caused by:
> > java.lang.RuntimeException: file open failed
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > dalvik.system.VMDebug.startMethodTracing(Native Method)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > dalvik.system.VMDebug.startMethodTracing(VMDebug.java:155)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.os.Debug.startMethodTracing(Debug.java:378)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > android.os.Debug.startMethodTracing(Debug.java:326)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> > com.client.MyClientActivity.onCreate(MyClientActivity.java:131)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> >
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     at
> >
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
> > 10-07 11:36:32.671: ERROR/AndroidRuntime(925):     ... 11 more
> >
> > >
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to