• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps (q)force closes when i try to write to file

I need to write text to backgroundcache.text in the folder sdcard/spinlauncher, but when I run the code it force closes and on log cat it says "failed binder transaction"




Code:
 try {
		OutputStreamWriter cache = new OutputStreamWriter(openFileOutput("/sdcard/spinlauncher/backgroundcache.txt",MODE_APPEND));
		cache.write("this is text");
		cache.close();
		cache.flush();
	} catch (java.io.IOException e) {
		
	}
Any suggestions
 
Back
Top Bottom