package com.digitalsynapses.engine;
import android.app.Activity;
import android.content.Intent;
import android.content.Context;
import android.os.Bundle;
import android.view.inputmethod.InputMethodManager;
public class DummyActivity extends Activity
{
static DummyActivity da;
@Override
protected void onCreate(Bundle savedInstanceState)
{
System.loadLibrary("openal");
System.loadLibrary("ds_engine");
super.onCreate(savedInstanceState);
Intent intent = new Intent(DummyActivity.this, android.app.NativeActivity.class);
DummyActivity.this.startActivity(intent);
da = this;
}
}
class Keyboard
{
static void show()
{
InputMethodManager m = (InputMethodManager)DummyActivity.da.getSystemService(Context.INPUT_METHOD_SERVICE);
m.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
}
static void hide()
{
InputMethodManager m = (InputMethodManager)DummyActivity.da.getSystemService(Context.INPUT_METHOD_SERVICE);
m.toggleSoftInput(0, 0);
}
}