]> cvs.zerfleddert.de Git - FreeShisen/blobdiff - src/de/cwde/shisensho/ShisenShoActivity.java
try to use the andriod way of Preferences and ruin everything[tm]
[FreeShisen] / src / de / cwde / shisensho / ShisenShoActivity.java
index b87979f755a3e74c4640b72b44cf8948f65db61a..8ba59afe142a858ebf80fd43d469f323f14e29ed 100644 (file)
@@ -1,7 +1,5 @@
 package de.cwde.shisensho;
 
-import de.cwde.shisensho.R;
-
 import android.app.Activity;
 import android.app.AlertDialog;
 import android.content.Intent;
@@ -9,6 +7,7 @@ import android.content.pm.PackageInfo;
 import android.content.pm.PackageManager;
 import android.content.pm.PackageManager.NameNotFoundException;
 import android.os.Bundle;
+import android.preference.PreferenceManager;
 import android.text.SpannableString;
 import android.text.util.Linkify;
 import android.view.Menu;
@@ -25,6 +24,8 @@ public class ShisenShoActivity extends Activity {
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
+        
+        PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
 
         requestWindowFeature(Window.FEATURE_NO_TITLE);
         //getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
Impressum, Datenschutz