recover java activity on android.

This commit is contained in:
Dhilan007 2013-12-30 15:58:04 +08:00
parent b474f7ca0e
commit a5960c3252
41 changed files with 261 additions and 53 deletions

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.AssetsManagerTest;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,17 @@
package org.cocos2dx.hellocpp;
import android.app.NativeActivity;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -11,7 +11,7 @@
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.simplegame;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -0,0 +1,18 @@
package org.cocos2dx.testcpp;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.cocosdragonjs;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.crystalcraze;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.moonwarriors;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -12,7 +12,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.testjavascript;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.watermelonwithme;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,18 @@
package org.cocos2dx.hellolua;
import android.app.NativeActivity;
import android.graphics.PixelFormat;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,17 @@
package org.cocos2dx.testlua;
import android.app.NativeActivity;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -11,7 +11,7 @@
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,17 @@
package org.cocos2dx.hellocpp;
import android.app.NativeActivity;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,17 @@
package org.cocos2dx.hellojavascript;
import android.app.NativeActivity;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}

View File

@ -10,7 +10,7 @@
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
<activity android:name=".Cocos2dxActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

View File

@ -1,3 +0,0 @@
No Java files
src/ is required for Android's build.xml to operate correctly.
git does not allow empty directories in revision control so this file is added to src/ both as a readme and to keep git happy.

View File

@ -0,0 +1,17 @@
package org.cocos2dx.hellolua;
import android.app.NativeActivity;
import android.os.Bundle;
public class Cocos2dxActivity extends NativeActivity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
//For supports translucency.
//You need configure egl attribs of the color buffer size in cocos\2d\platform\android\nativeactivity.cpp on some android versions(eg.4.4)
//getWindow().setFormat(PixelFormat.TRANSLUCENT);
}
}