package com.marakana; import android.R.bool; import android.content.Context; import android.view.inputmethod.InputMethodManager; public class NativeLib { static { System.loadLibrary("ndk_demo"); } Context mContext; public NativeLib(NDKDemo ndkDemo) { } public void Keyboard(Context mContext){ this.mContext = mContext; } public void getSystemService(bool makevisible){ if(makevisible != null){ InputMethodManager m = (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE); m.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); } else { InputMethodManager m = (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE); m.toggleSoftInput(0, 0); } } public native void openKeyBoard(); }
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_marakana_NativeLib */ #ifndef _Included_com_marakana_NativeLib #define _Included_com_marakana_NativeLib #ifdef __cplusplus extern "C" { #endif /* * Class: com_marakana_NativeLib * Method: add * Signature: (II)I */ JNIEXPORT jstring JNICALL Java_com_marakana_NativeLib_openKeyBoard (JNIEnv *, jobject); #ifdef __cplusplus } #endif #endif
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)