Codebase list crossguid / d8dd3e83-c983-4462-81c4-25fde0fc7fd0/main android / jni / jnitest.cpp
d8dd3e83-c983-4462-81c4-25fde0fc7fd0/main

Tree @d8dd3e83-c983-4462-81c4-25fde0fc7fd0/main (Download .tar.gz)

jnitest.cpp @d8dd3e83-c983-4462-81c4-25fde0fc7fd0/mainraw · history · blame

#include <string>
#include <sstream>
#include <jni.h>
#include <iostream>
#include "../../test.h"
#include "../../guid.h"

extern "C" 
{

  jstring Java_ca_graemehill_crossguid_testapp_MainActivity_test(JNIEnv *env, jobject thiz)
  {
    std::stringstream resultStream;
    test(GuidGenerator(env), resultStream);
    return env->NewStringUTF(resultStream.str().c_str());
  }

}