Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

calling the Android soft keyboard from a C++ file

I am facing some issues in calling the Android soft keyboard from a C++ file. I have a project in C++ and I need to show and use the native soft keyboard in some screens. I am compiling all the code with NDK. Can anybody provide a suggestion on how to use the soft keyboard in a native / C++ application ? Thanks in advance for your help. Regards, Maidul

like image 390
Maidul Avatar asked Jul 30 '12 11:07

Maidul


1 Answers

1) Create a method in Java to show the virtual keyboard like this: How to show virtual keypad in an android activity

2) Write a callback from C++ to Java using the following technique: JNI - How to callback from C++ or C to Java?

like image 93
JonnyBoy Avatar answered Oct 22 '22 06:10

JonnyBoy