Building Gestures - No gesture file being created

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Building Gestures - No gesture file being created

Postby litterbug_kid » Thu Aug 19, 2010 8:58 pm

I'm trying to use the gesture builder, and I build them and a Toast comes up saying they have saved to mnt/sdcard/gestures, but when I go to look for the file in the file explorer, there's no file?
Any help would be much appreciated!

Logcat:
08-19 20:07:25.637: DEBUG/Gestures(329): Could not save the gesture library in /mnt/sdcard/gestures
08-19 20:07:25.637: DEBUG/Gestures(329): java.io.IOException: Permission denied
08-19 20:07:25.637: DEBUG/Gestures(329): at java.io.File.createNewFileImpl(Native Method)
08-19 20:07:25.637: DEBUG/Gestures(329): at java.io.File.createNewFile(File.java:1160)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.gesture.GestureLibraries$FileGestureLibrary.save(GestureLibraries.java:78)
08-19 20:07:25.637: DEBUG/Gestures(329): at com.android.gesture.builder.CreateGestureActivity.addGesture(CreateGestureActivity.java:73)
08-19 20:07:25.637: DEBUG/Gestures(329): at java.lang.reflect.Method.invokeNative(Native Method)
08-19 20:07:25.637: DEBUG/Gestures(329): at java.lang.reflect.Method.invoke(Method.java:521)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.view.View$1.onClick(View.java:2067)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.view.View.performClick(View.java:2408)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.view.View$PerformClick.run(View.java:8816)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.os.Handler.handleCallback(Handler.java:587)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.os.Handler.dispatchMessage(Handler.java:92)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.os.Looper.loop(Looper.java:123)
08-19 20:07:25.637: DEBUG/Gestures(329): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-19 20:07:25.637: DEBUG/Gestures(329): at java.lang.reflect.Method.invokeNative(Native Method)
08-19 20:07:25.637: DEBUG/Gestures(329): at java.lang.reflect.Method.invoke(Method.java:521)
08-19 20:07:25.637: DEBUG/Gestures(329): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-19 20:07:25.637: DEBUG/Gestures(329): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-19 20:07:25.637: DEBUG/Gestures(329): at dalvik.system.NativeStart.main(Native Method)
08-19 20:08:16.748: DEBUG/SntpClient(60): request time failed: java.net.SocketException: Address family not supported by protocol
litterbug_kid
Freshman
Freshman
 
Posts: 7
Joined: Fri Jul 30, 2010 5:40 pm
Location: London

Top

Re: Building Gestures - No gesture file being created

Postby blundell » Fri Aug 20, 2010 9:07 am

java.io.IOException: Permission denied , yes the toast came up but the file didn't save
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Building Gestures - No gesture file being created

Postby litterbug_kid » Fri Aug 20, 2010 10:30 am

Do you know why?
litterbug_kid
Freshman
Freshman
 
Posts: 7
Joined: Fri Jul 30, 2010 5:40 pm
Location: London

Re: Building Gestures - No gesture file being created

Postby FilipeFreitas » Thu Aug 26, 2010 6:01 pm

permission.write_external_storage
FilipeFreitas
Junior Developer
Junior Developer
 
Posts: 14
Joined: Fri Aug 06, 2010 5:50 pm

Re: Building Gestures - No gesture file being created

Postby litterbug_kid » Tue Aug 31, 2010 4:51 pm

Do I need to give it certain permissions?
litterbug_kid
Freshman
Freshman
 
Posts: 7
Joined: Fri Jul 30, 2010 5:40 pm
Location: London

Re: Building Gestures - No gesture file being created

Postby FilipeFreitas » Tue Aug 31, 2010 8:02 pm

Code: Select all
08-19 20:07:25.637: DEBUG/Gestures(329): Could not save the gesture library in /mnt/sdcard/gestures
08-19 20:07:25.637: DEBUG/Gestures(329): java.io.IOException: Permission denied


it's not allowing you to write on sdcard
you didn't provide permission.write_external_storage in the android manifest
Last edited by FilipeFreitas on Thu Sep 02, 2010 4:46 pm, edited 1 time in total.
FilipeFreitas
Junior Developer
Junior Developer
 
Posts: 14
Joined: Fri Aug 06, 2010 5:50 pm

Top

Re: Building Gestures - No gesture file being created

Postby litterbug_kid » Wed Sep 01, 2010 11:38 am

Thankyou :) It works now!
litterbug_kid
Freshman
Freshman
 
Posts: 7
Joined: Fri Jul 30, 2010 5:40 pm
Location: London

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests