diff --git a/templates/cpp-template-default/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java b/templates/cpp-template-default/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java index 449d0683ec..e751eca333 100644 --- a/templates/cpp-template-default/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java +++ b/templates/cpp-template-default/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java @@ -3,6 +3,9 @@ package org.cocos2dx.cpp; import android.app.NativeActivity; import android.os.Bundle; +// The name of .so is specified in AndroidMenifest.xml. NativityActivity will load it automatically for you. +// You can use "System.loadLibrary()" to load other .so files. + public class Cocos2dxActivity extends NativeActivity{ @Override diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java b/templates/lua-template-default/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java index 8a6f1a6f1c..074f831a1a 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java +++ b/templates/lua-template-default/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java @@ -1,20 +1,10 @@ package org.cocos2dx.lua; -import java.net.InetAddress; -import java.net.NetworkInterface; -import java.net.SocketException; -import java.util.Enumeration; - import android.app.NativeActivity; -import android.content.Context; -import android.content.Intent; -import android.net.ConnectivityManager; -import android.net.NetworkInfo; import android.os.Bundle; -import android.os.Environment; -import android.provider.Settings; -import android.util.Log; -import android.widget.Toast; + +// The name of .so is specified in AndroidMenifest.xml. NativityActivity will load it automatically for you. +// You can use "System.loadLibrary()" to load other .so files. public class Cocos2dxActivity extends NativeActivity{ diff --git a/templates/lua-template-runtime/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java b/templates/lua-template-runtime/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java index 932794051e..76e0797690 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java +++ b/templates/lua-template-runtime/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java @@ -16,6 +16,9 @@ import android.provider.Settings; import android.util.Log; import android.widget.Toast; +// The name of .so is specified in AndroidMenifest.xml. NativityActivity will load it automatically for you. +// You can use "System.loadLibrary()" to load other .so files. + public class Cocos2dxActivity extends NativeActivity{ @Override