Merge pull request #5735 from minggo/template-java-des

add description for how to load .so
This commit is contained in:
minggo 2014-03-12 21:31:30 +08:00
commit e1afa0ad5c
3 changed files with 9 additions and 13 deletions

View File

@ -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

View File

@ -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{

View File

@ -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