Jonas
Jonas

Reputation: 21

Android SQLite Database still error

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 :)

Upvotes: 0

Views: 53

Answers (1)

Sergey Benner
Sergey Benner

Reputation: 4431

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.

Upvotes: 2

Related Questions