0

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

3
  • 1
    Please post error message. Without knowing what is the error, it is hard to predict a solution. Commented Jan 24, 2012 at 16:33
  • for future reference you should check your logs for the exception and fix them. Commented Jan 24, 2012 at 16:46
  • oe, i will post the error for the next time. :) Commented Jan 25, 2012 at 1:04

1 Answer 1

2
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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.