标签:android
<application android:label="@string/app_name"
android:icon="@drawable/icon"
android:name="org.cocos2dx.lua.TestApplication"> //加上application的路径
//要调用的application
package org.cocos2dx.lua;
import android.app.Application;
import android.content.pm.ApplicationInfo;
import android.util.Log;
import com.wett.cooperation.container.TTSDKV2;
public class TestApplication extends Application {
private static final String TAG = "TestApplication";
@Override
public void onCreate() {
super.onCreate();
Log.e("00000000000","");
TTSDKV2.getInstance().prepare(this);
Log.e("00000001111111110000","");
//AppInterface.getActivity();
}
}
本文出自 “陪你度过漫长岁月” 博客,请务必保留此出处http://4774721.blog.51cto.com/4764721/1795544
在启动activity之前,调用application的oncreate
标签:android
原文地址:http://4774721.blog.51cto.com/4764721/1795544