- public class Midlet extends UnityPlayerActivity {
-
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- Control.initApp(this);
-
- }
- }
复制代码
- public class Control {
- private static Activity activity;
-
- /**
- * 初始化
- */
- public static void initApp(Activity activity) {
- setActivity(activity);
-
- }
-
复制代码
debug 后activity=null ..求救 |
|