Code example for SparseBooleanArray

0
 
public class BaseActivity extends Activity {
	public static final LogCategory log = new LogCategory("Activity");
 
	public HelperEnvUI env;
	private final SparseBooleanArray pressed_key = new SparseBooleanArray();
 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		env = new HelperEnvUI(this);
	} 
 
	@Override protected void onDestroy() { 
		super.onDestroy(); 
		env.dialog_manager.onDestroy();
		env.lifecycle_manager.fire_onDestroy();
	} 
 
	@Override protected void onNewIntent(Intent intent) {
		super.onNewIntent(intent);