mirror of https://github.com/axmolengine/axmol.git
recover java activity on android.
This commit is contained in:
parent
b474f7ca0e
commit
a5960c3252
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue