Rev 129 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package org.ligi;
import android.app.Activity;
import android.os.Bundle;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.os.Bundle;
import android.os.*;
import android.view.View;
import android.content.*;
import android.media.*;
import android.util.Log;
import java.util.Random;
import android.view.Window;
import android.view.WindowManager;
//import org.bluez.*;
public class DUBwise
extends Activity
{
private SharedPreferences mPrefs
;
public boolean fullscreen
;
public boolean do_sound=
true;
public MKCommunicator mk
;
public DUBwiseStatusVoice voice
;
/** Called when the activity is first created. */
@
Override
public void onCreate
(Bundle icicle
)
{
super.
onCreate(icicle
);
SharedPreferences mPrefs = getSharedPreferences
("dubwise",
0);
fullscreen = mPrefs.
getBoolean("fullscreen",
true);
Log.
d("DUBWise-V",
"starting");
mk=
new MKCommunicator
(this);
voice=
new DUBwiseStatusVoice
(this);
mk.
connect_to("s",
"test");
Log.
d("DUBWise-V",
"version " + mk.
version.
major);
if (fullscreen
)
{
// this.requestWindowFeature(Window.FEATURE_NO_TITLE);
//this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_NO_STATUS_BAR,
//WindowManager.LayoutParams.FLAG_NO_STATUS_BAR);
}
setContentView
(new DUBwiseView
(this));
}
public void quit
()
{
// setContentView(null);
finish
();
// mk=null;
/*
SharedPreferences.Editor ed = getSharedPreferences("dubwise",0).edit();
ed.putBoolean("fullscreen", true);
ed.commit();
*/
}
public void log
(String msg
)
{
Log.
d("DUWISE",msg
);
}
}