192 sketches that don´t have the setup and draw functions seem to crash when pressing the back button with the messages below. On windows 7 64. Yes I installed Java separately.
Anyone else have the same problem?
Rikard
The application x has stopped unexpectedly. Please try again.
and
java.lang.NullPointerException at processing.core.PApplet.dispose(PApplet.java:2518) at processing.core.PApplet.exit(PApplet.java:2485) at processing.core.PApplet.handleKeyEvent(PApplet.java:2120) at processing.core.PApplet.checkKeyEvent(PApplet.java:2140) at processing.core.PApplet.surfaceKeyDown(PApplet.java:909) at processing.core.PApplet$SketchSurfaceView2D.onKeyDown(PApplet.java:692) at android.view.KeyEvent.dispatch(KeyEvent.java:1037) at android.view.View.dispatchKeyEvent(View.java:3683) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:748) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:748) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1655) at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1102) at android.app.Activity.dispatchKeyEvent(Activity.java:2038) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1631) at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2368) at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2338) at android.view.ViewRoot.handleMessage(ViewRoot.java:1641) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4363) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at dalvik.system.NativeStart.main(Native Method)
I've made some additions to
APWidgets which is now on
r30. Work has been done to PVideoView, and there is now also an example in the wiki on how to use PVideoView to play video.
PEditText also have new features. You can now set the InputType to control what type of soft keyboard will appear like, numerical, text and phone etc. See the
InputType class. You can also set the ImeOptions to specify more features, like
IME_ACTION_DONE that turns the return button into a "Done" button. If you have done this the onClickWidget in your sketch method will be called when you press Done allowing you to capture that event. Also, if you set setCloseImeOnDone to true, the soft keyboard will close when you press done. See
EditorInfo for more alternatives.
If you state
IME_ACTION_NEXT in setImeOptions the return button is replaced with a "Next"-button, which means that focus will go on to the EditText below without closing the keyboard. Focus will always go to the EditText below the current EditText, unless you call setNextEditText which allows you to specify which EditText will be the next.
A new example PEditText_Advanced_example has been added to explain the new features.
Hi,
I'm trying to create a way to make a GUI using an xml document. But I can't seem to find the asset folder. Where is the "root directory" of the application? Is it the sketch folder?