Codebase list crossguid / 4f6eebe0-0dd3-4873-a65e-1da986a6263f/main android / jni / jnitest.cpp
4f6eebe0-0dd3-4873-a65e-1da986a6263f/main

Tree @4f6eebe0-0dd3-4873-a65e-1da986a6263f/main (Download .tar.gz)

jnitest.cpp @4f6eebe0-0dd3-4873-a65e-1da986a6263f/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());
  }

}