Rev 92 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 92 | Rev 129 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | 30 | ||
31 | public class DUBwise extends Activity |
31 | public class DUBwise extends Activity |
32 | { |
32 | { |
33 | private SharedPreferences mPrefs; |
33 | private SharedPreferences mPrefs; |
34 | public boolean fullscreen; |
34 | public boolean fullscreen; |
Line -... | Line 35... | ||
- | 35 | public boolean do_sound=true; |
|
- | 36 | ||
Line 35... | Line 37... | ||
35 | public MKCommunicator mk; |
37 | public MKCommunicator mk; |
36 | 38 | public DUBwiseStatusVoice voice; |
|
37 | 39 | ||
38 | /** Called when the activity is first created. */ |
40 | /** Called when the activity is first created. */ |
Line 43... | Line 45... | ||
43 | SharedPreferences mPrefs = getSharedPreferences("dubwise",0); |
45 | SharedPreferences mPrefs = getSharedPreferences("dubwise",0); |
44 | fullscreen = mPrefs.getBoolean("fullscreen", true); |
46 | fullscreen = mPrefs.getBoolean("fullscreen", true); |
Line 45... | Line 47... | ||
45 | 47 | ||
46 | Log.d("DUBWise-V","starting"); |
48 | Log.d("DUBWise-V","starting"); |
- | 49 | mk=new MKCommunicator(this); |
|
47 | mk=new MKCommunicator(this); |
50 | voice=new DUBwiseStatusVoice(this); |
48 | mk.connect_to("s","test"); |
51 | mk.connect_to("s","test"); |
49 | Log.d("DUBWise-V","version " + mk.version.major); |
52 | Log.d("DUBWise-V","version " + mk.version.major); |
50 | if (fullscreen) |
53 | if (fullscreen) |
51 | { |
54 | { |
52 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); |
55 | // this.requestWindowFeature(Window.FEATURE_NO_TITLE); |
53 | this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_NO_STATUS_BAR, |
56 | //this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_NO_STATUS_BAR, |
54 | WindowManager.LayoutParams.FLAG_NO_STATUS_BAR); |
57 | //WindowManager.LayoutParams.FLAG_NO_STATUS_BAR); |
Line 55... | Line 58... | ||
55 | } |
58 | } |