| |
|
|
| package com.meta.northstar; |
| import com.unity3d.player.UnityPlayerGameActivity; |
| import android.os.Bundle; |
| import android.util.Log; |
| import android.content.IntentFilter; |
|
|
| public class NorthStarActivity extends UnityPlayerGameActivity |
| { |
| ProfileCommandReceiver profileCommandReceiver; |
|
|
| protected void onCreate(Bundle savedInstanceState) |
| { |
| super.onCreate(savedInstanceState); |
|
|
| profileCommandReceiver = new ProfileCommandReceiver(); |
| registerReceiver(profileCommandReceiver, new IntentFilter("com.meta.northstar")); |
| } |
|
|
| @Override |
| protected void onDestroy() |
| { |
| if (profileCommandReceiver != null) |
| { |
| unregisterReceiver(profileCommandReceiver); |
| profileCommandReceiver = null; |
| } |
| super.onDestroy(); |
| } |
| } |