void sendBroadcastInt(int code,int nameCode,int date){
jvm= AndroidRuntime::getJavaVM();
JNIEnv * temp = AndroidRuntime::getJNIEnv();
jclass clazz=temp->FindClass("cn/com/xxxx/android/apiservice/MainEngine");
jmethodID send = temp->GetStaticMethodID(clazz,"sendBroadCastInt","(III)V");
if(send == NULL){
LOGE("hua !!! mid is NULL");
return;
}else{
LOGE("hua !!! mid is not NULL");
temp->CallStaticVoidMethod(clazz,send,code,nameCode,date);
}
}
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net