Well, I got it all figured it out and I got the example program running on my phone using Android Studio (My phone is a LGL41C with Android version 4.4.2). I had to create the project manually in Android Studio which was not hard at all since I had played around with the NDK already. I couldn't import the SFML android example though because Gradle couldn't be configured from the project, so I just copied everything over by hand. I also added the JNI stuff to my app build.gradle file so it looks like this:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.sfml_helloandroid"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
sourceSets.main {
jni.srcDirs = []
jniLibs.srcDir 'src/main/libs'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
}
I followed information from this
Stack Overflow QI couldn't hear any sound from the example but I was able to move the icon around with my hand. I hope to play around with it more later on.
I am getting spammed about an error: "Failed to activate window's context" which I think I have seen mentioned here already several times and not to worry about it.
Last, I have a quick CMake question. Is there some way I can use CMake-GUI to build the libraries (armeabi, mips, etc)? I tried to by adding the variables that I normally would use from command line and it couldn't seem to figure out I wanted Android and not desktop SFML, so I'm probably not adding the right variables. I had no issues using the command line CMake from the
example after following Mario's suggestion above.