Package list crossguid / 5941dae3-cdb6-4805-ab54-3a9915ac65c5/main android / jni / jnitest.cpp
5941dae3-cdb6-4805-ab54-3a9915ac65c5/main

Tree @5941dae3-cdb6-4805-ab54-3a9915ac65c5/main (Download .tar.gz)

jnitest.cpp @5941dae3-cdb6-4805-ab54-3a9915ac65c5/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());
  }

}