Comments (5)
from nme.
Most recent stack trace
java.lang.NullPointerException
org.haxe.nme.GameActivity.showKeyboard(GameActivity.java:1097)
org.haxe.nme.NME.onTouch(Native Method)
org.haxe.nme.MainView$8.run(MainView.java:488)
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1463)
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
from nme.
I did changes for text input support. Potentially it could break something. Check line activity.mKeyInTextView.requestFocus(); If null pointer exception occurred here then maybe something destroying text field mKeyInTextView. You can try this for stability improvement:
if(activity.mKeyInTextView != null)
activity.mKeyInTextView.requestFocus();
If this fixed problem, then need to find reason why object empty.
Of course its not a solution only will prove point that object mKeyInTextView been destroyed
somewhere.
public static void showKeyboard(boolean show)
{
InputMethodManager mgr = (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.hideSoftInputFromWindow(activity.mView.getWindowToken(), 0);
if (show)
{
activity.mKeyInTextView.requestFocus();//<-------- check this line
mgr.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
// On the Nexus One, SHOW_FORCED makes it impossible
// to manually dismiss the keyboard.
// On the Droid SHOW_IMPLICIT doesn't bring up the keyboard.
}
}
from nme.
Hey @codeservice , thanks for adding the change. I'll try this in the next Pakka Pets build, if the error goes away I'll close this issue.
from nme.
Let's assume this fixes it. If we get reports after building with NME that includes this change we should re-open. 95c15dc
from nme.
Related Issues (20)
- [QUESTION] How accurate cubicTo method? HOT 2
- Issue with clipboard getdata on Android HOT 2
- Window close events
- Incompatibility with SWF library HOT 4
- Unable to run sample project on Linux HOT 3
- nme setup fails on M1 Mac
- CapabilitiesGetScreenDPI on Mac retina display concern HOT 8
- Video player on android 11 issue HOT 1
- nme build is adding empty `-cp`s
- Build Error: Invalid character: / HOT 3
- nme build neko create an empty output file.
- xcode 14.0.1 NME app hang risk warning
- Cant compile NME for android with latest hxcpp changes
- nmehost download site has been taken over, please do not visit till Hugh has resolved. HOT 1
- ByteArray writeFile doesnt work on iOS
- Android not working? HOT 9
- Exception: ZLib Error : incorrect header check(-3) HOT 1
- linux jsprime HOT 1
- [Windows] TextField does not work properly with input method
- Exception: Code offset miscaculation on gm2d.swf.Font HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nme.