Hi,
Our application has been developed in iOS using JUCE. now we are trying to port the application to Android and we are facing issues. in our application we have employed JUCE for
1. Networking Operation
2. Sound Operations and Sound Manipulation
we have no option of using JuceAppActivity.java because we are making a gaming application using unity and using JUCE to develop plugin for unity same as iOS one. in order to accomplish this goal we have altered the JuceAppActivity.java targeting JNI code in a way:
// JUCEApplicationBase::createInstance = &juce_CreateApplication;
//
// initialiseJuce_GUI();
//
// JUCEApplicationBase* app = JUCEApplicationBase::createInstance();
// if (! app->initialiseApp())
// exit (app->getApplicationReturnValue());
//
// jassert (MessageManager::getInstance()->isThisTheMessageThread());
//==============================================================================
//#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD) \
// METHOD (setViewName, "setViewName", "(Ljava/lang/String;)V") \
// METHOD (layout, "layout", "(IIII)V") \
// METHOD (getLeft, "getLeft", "()I") \
// METHOD (getTop, "getTop", "()I") \
// METHOD (getWidth, "getWidth", "()I") \
// METHOD (getHeight, "getHeight", "()I") \
// METHOD (getLocationOnScreen, "getLocationOnScreen", "([I)V") \
// METHOD (bringToFront, "bringToFront", "()V") \
// METHOD (requestFocus, "requestFocus", "()Z") \
// METHOD (setVisible, "setVisible", "(Z)V") \
// METHOD (isVisible, "isVisible", "()Z") \
// METHOD (hasFocus, "hasFocus", "()Z") \
// METHOD (invalidate, "invalidate", "(IIII)V") \
// METHOD (containsPoint, "containsPoint", "(II)Z") \
// METHOD (showKeyboard, "showKeyboard", "(Ljava/lang/String;)V") \
// METHOD (createGLView, "createGLView", "()L" JUCE_ANDROID_ACTIVITY_CLASSPATH "$OpenGLView;") \
//
//DECLARE_JNI_CLASS (ComponentPeerView, JUCE_ANDROID_ACTIVITY_CLASSPATH "$ComponentPeerView");
//#undef JNI_CLASS_MEMBERS
now we have only commented these lines and its correcponding code as we found it was interacting with JuceAppActivity.java and we left everything else intact.
we have went through these articles :
http://www.juce.com/forum/topic/gui-less-android
http://www.juce.com/forum/topic/use-juces-audio-engine-non-gui-library
we are facing app crashing so anyway this is possible. any help or direction will be greatly appreciated.
Thank You