I looked at the related posts, but my problem seems more basic. Full
path, or no path, file extension or not, I get a "Unable to open trace
file '/sdcard/traceit.trace': Permission denied" error when I run on
the emulator. Do I need to 'prepare' the emulated sd card?
import android.app.Activity;
import android.os.Bundle;
import android.os.Debug;
public class TraceItActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Debug.startMethodTracing("/sdcard/traceit");
setContentView(R.layout.main);
Debug.stopMethodTracing();
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hiplogic.traceit"
android:versionCode="1"
android:versionName="1.0">
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="8" />
<application android:icon="@drawable/icon"
android:label="@string/app_name">
<activity android:name=".TraceItActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
--
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