src/core/android/SDL_android.c
changeset 9640 d86771e28c51
parent 9619 b94b6d0bff0f
child 9858 6d6a972746b3
     1.1 --- a/src/core/android/SDL_android.c	Tue May 26 20:22:14 2015 -0400
     1.2 +++ b/src/core/android/SDL_android.c	Tue May 26 20:36:45 2015 -0400
     1.3 @@ -141,6 +141,16 @@
     1.4      __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init() finished!");
     1.5  }
     1.6  
     1.7 +/* Drop file */
     1.8 +void Java_org_libsdl_app_SDLActivity_onNativeDropFile(
     1.9 +                                    JNIEnv* env, jclass jcls,
    1.10 +                                    jstring filename)
    1.11 +{
    1.12 +    const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
    1.13 +    SDL_SendDropFile(path);
    1.14 +    (*env)->ReleaseStringUTFChars(env, filename, path);
    1.15 +}
    1.16 +
    1.17  /* Resize */
    1.18  JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeResize(
    1.19                                      JNIEnv* env, jclass jcls,