Adding c++ to the mix

This commit is contained in:
kdeng00
2019-09-26 22:02:09 -04:00
parent 6b68afad9b
commit 356f75d0c5
9 changed files with 299 additions and 128 deletions
+37
View File
@@ -0,0 +1,37 @@
//
// Created by brahmix on 9/26/19.
//
#include <iostream>
#include <cstring>
#include <jni.h>
#include <string>
#include <iomanip>
#include <sstream>
#include <fcntl.h>
#include <android/asset_manager_jni.h>
#include <android/log.h>
#include <android/sharedmem.h>
#include <sys/mman.h>
#include "model/Song.h"
int demoCall()
{
model::Song song;
song.title = "hello";
song.artist = "some artist";
std::cout << "testing" << std::endl;
return 0;
}
extern "C"
JNIEXPORT void
JNICALL
Java_com_example_mear_activities_MainActivity_test(
JNIEnv *env,
jobject /* this */) {
demoCall();
}