Permalink
Browse files

must change settings menu and get settings saved in local sql

  • Loading branch information...
1 parent 1bf33cb commit 9db7e999f520244632422f0075934e1fdd8ce356 @Kagetsuki committed Mar 26, 2012
View
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -0,0 +1,33 @@
+package org.genshin.warehouse;
+
+import android.content.Context;
+import android.database.sqlite.SQLiteDatabase;
+import android.database.sqlite.SQLiteDatabase.CursorFactory;
+import android.database.sqlite.SQLiteOpenHelper;
+
+public class DataStoreHelper extends SQLiteOpenHelper {
+
+ public static final String TABLE_WAREHOUSE_SETTINGS = "warehousesettings";
+ public static final String COLUMN_ID = "id";
+ public static final String COLUMN_SERVER = "server";
+ //public static final String COLUMN_
+
+ public DataStoreHelper(Context context, String name, CursorFactory factory,
+ int version) {
+ super(context, name, factory, version);
+ // TODO Auto-generated constructor stub
+ }
+
+ @Override
+ public void onCreate(SQLiteDatabase db) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
@@ -20,9 +20,14 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.warehouse_settings);
+ final class MLI {
+
+ }
+
+ //menuListItems
+
ListView menuList = (ListView) findViewById(R.id.settings_category_list);
String[] settingsListItems = getResources().getStringArray(R.array.settings_list_items);
- //setContentView(menuList);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, android.R.id.text1, settingsListItems);

0 comments on commit 9db7e99

Please sign in to comment.