corrction of the missing log in android and remove the pb with the rotation remove context of open GL

This commit is contained in:
Edouard Dupin 2012-01-27 02:04:02 +01:00
parent 7bad5d42f2
commit 65b288813e
3 changed files with 7 additions and 21 deletions

View File

@ -9,7 +9,8 @@
<!-- classpath-->
<activity android:name=".edn"
android:label="Edn Text-Editor"
android:icon="@drawable/ic_luncher_edn">
android:icon="@drawable/ic_luncher_edn"
android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />

View File

@ -15,8 +15,11 @@ LOCAL_SRC_FILES := ewolAndroidAbstraction.cpp \
LOCAL_LDLIBS := -llog -landroid
LOCAL_CFLAGS := -DEWOL_USE_FREE_TYPE \
-DEDN_DEBUG_LEVEL=3
LOCAL_CFLAGS := -D__PLATFORM__Android \
-DEWOL_USE_FREE_TYPE \
-DETK_DEBUG_LEVEL=3 \
-DEDN_DEBUG_LEVEL=3 \
-DDATA_IN_APK
include $(BUILD_SHARED_LIBRARY)

View File

@ -77,29 +77,21 @@ void APP_Init(int argc, char *argv[])
//ewol::SetDefaultFont("unispace.ttf", 12);
EDN_DEBUG("TEST1");
// init internal global value
globals::init();
EDN_DEBUG("TEST2");
ClipBoard::Init();
EDN_DEBUG("TEST3");
// init ALL Singleton :
(void)MsgBroadcastCore::getInstance();
EDN_DEBUG("TEST4");
//(void)AccelKey::getInstance();
(void)WindowsManager::getInstance();
EDN_DEBUG("TEST5");
(void)CTagsManager::getInstance();
EDN_DEBUG("TEST6");
BufferManager *myBufferManager = BufferManager::getInstance();
EDN_DEBUG("TEST7");
// set color and other trucs...
ColorizeManager *myColorManager = NULL;
myColorManager = ColorizeManager::getInstance();
EDN_DEBUG("TEST8");
etk::String homedir;
//homedir = getenv("HOME");
#ifdef NDEBUG
@ -110,19 +102,14 @@ void APP_Init(int argc, char *argv[])
//homedir += "color_black.xml";
homedir = "color_white.xml";
myColorManager->LoadFile( homedir.c_str() );
EDN_DEBUG("TEST9");
myColorManager->DisplayListOfColor();
EDN_DEBUG("TEST10");
HighlightManager *myHighlightManager = NULL;
myHighlightManager = HighlightManager::getInstance();
EDN_DEBUG("TEST11");
myHighlightManager->loadLanguages();
EDN_DEBUG("TEST12");
// open display
MsgBroadcastCore::getInstance()->SendMessage(NULL, EDN_MSG__GUI_SHOW_MAIN_WINDOWS);
EDN_DEBUG("TEST13");
// get the curent program folder
char cCurrentPath[FILENAME_MAX];
@ -132,10 +119,8 @@ void APP_Init(int argc, char *argv[])
cCurrentPath[FILENAME_MAX - 1] = '\0';
//EDN_INFO("The current working directory is " << cCurrentPath);
EDN_DEBUG("TEST14");
basicWindows = new MainWindows();
EDN_DEBUG("TEST15");
// add files
EDN_INFO("show list of files : ");
@ -150,7 +135,6 @@ void APP_Init(int argc, char *argv[])
}
}
EDN_DEBUG("TEST16");
/*
{
etk::File myfile((char *)"licence.txt", etk::FILE_TYPE_DIRECT);
@ -164,11 +148,9 @@ void APP_Init(int argc, char *argv[])
EDN_ERROR("Can not allocate the basic windows");
ewol::Stop();
}
EDN_DEBUG("TEST17");
// create the specific windows
ewol::DisplayWindows(basicWindows);
EDN_DEBUG("TEST18");
}