Ejemplo n.º 1
0
void AApplication::cppOnReceiveURI (jstring data)
{
    uAutoReleasePool pool;
    uString* unoUri = JniHelper::JavaToUnoString(data);
    JniHelper jni;
    jni->DeleteGlobalRef(data);
    ::g::Uno::Platform2::Application::OnReceivedURI(unoUri);
}
Ejemplo n.º 2
0
Audio::~Audio()
{
	LOG("Audio destructor: %s", m_src.c_str());
	if( m_player )
	{
		JniHelper jniHelper;

		JNIEnv *env = jniHelper.getEnv();
		jmethodID method = jniHelper.getMethod(m_player, "release", "()V");
		if( env != NULL && method != NULL )
		{
			LOG("Audio release");
			env->CallVoidMethod(m_player, method);
		}
		jniHelper.DeleteGlobalRef(m_player);
	}
}