Codebase list crossguid / 91a3ba01-a759-43b7-acfa-b22c14cc7ae5/main android / jni / jnitest.cpp
91a3ba01-a759-43b7-acfa-b22c14cc7ae5/main

Tree @91a3ba01-a759-43b7-acfa-b22c14cc7ae5/main (Download .tar.gz)

jnitest.cpp @91a3ba01-a759-43b7-acfa-b22c14cc7ae5/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());
  }

}