title: How to increase stack size for thread on android via NDK?
body: <p>I'm having a huge problem! I want to implement neural network for gesture recognition in my google glass app but I'm facing a StackOverFlowError. Increasing stack via new Thread(group, runnable, threadName, stackSize) DOES NOT WORK! My only solution is setting stack size using NDK! I've seen on some forums that people have managed to do that (using pthreads, pthread_attr_setstack()...) but I've never used NDK before so if anyone can tell me is this even possible (developing the app with SDK but using NDK just for setting the stack size) and if it is please direct me to some good tutorials or examples that can help me! </p>