I've made aplication that entering 3 data to SQLite database, but still there is error when I click the ADD button that means to insert to database, Please help me to know the error guys :)
This is the following source of my application --> http://www.mediafire.com/?ur33rt6bdb8c1m3
thanks a lot, it really helps :)
Barmaley
16.4k18 gold badges78 silver badges150 bronze badges
-
1Please post error message. Without knowing what is the error, it is hard to predict a solution.kosa– kosa2012年01月24日 16:33:46 +00:00Commented Jan 24, 2012 at 16:33
-
for future reference you should check your logs for the exception and fix them.Sergey Benner– Sergey Benner2012年01月24日 16:46:32 +00:00Commented Jan 24, 2012 at 16:46
-
oe, i will post the error for the next time. :)Jonas– Jonas2012年01月25日 01:04:23 +00:00Commented Jan 25, 2012 at 1:04
1 Answer 1
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
inputContent1 = (EditText) findViewById(R.id.Problems_name);
**inputContent2** = (EditText) findViewById(R.id.jlh_kriteria);
**inputContent2** = (EditText) findViewById(R.id.jlh_alternative);
you had two same named variables. rename the last one to inputContent3 and you will be all set.
answered Jan 24, 2012 at 16:45
Sergey Benner
4,4312 gold badges26 silver badges30 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default