Codebase list crossguid / ed58dd17-3a98-4d09-a344-32954a5fec71/main android / jni / jnitest.cpp
ed58dd17-3a98-4d09-a344-32954a5fec71/main

Tree @ed58dd17-3a98-4d09-a344-32954a5fec71/main (Download .tar.gz)

jnitest.cpp @ed58dd17-3a98-4d09-a344-32954a5fec71/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());
  }

}