EditText input saved in Database?

1. In activity's OnCreate() define your editText views from xml file. EdtTextName = (EditText) findViewById(R.id.

ADConfigName); edtTextKeyword = (EditText) findViewById(R.id. ADConfigKeyword); 2. Get string from editText views .

Likes, String name = edtTextName.getText().toString(); String keyword = edtTextKeyword.getText().toString(); 3. Then using these values call your database's insert method. I think its createADFilter( name,keyword,cache) so, simple.

:-) I write this procedure bcoz I want, do coding by yourself with this procedure, then in actually you can know how to connect with database in sqlite. Avoid copy paste. Thnx.

I've everything would be that simplie than stackoverflow wouldn't exist, thx for your anwser, I try to do it =) – safari Aug 30 at 8:47 If you found this is correct answer, then please mark as correct answer for other user. Thnx. – user370305 Aug 30 at 8:53 Thx mate for the exact answer I could do it own my own with your first one.

THX A LOT! – safari Aug 30 at 9:06 now, this things you never forget in android coding. :-) – user370305 Aug 30 at 13:32.

Package de.retowaelchli. Filterit; import android.app. Activity; import android.os.

Bundle; public class ADFilterConfigActivity extends Activity { ADFilterDBAdapter db_conn; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super. OnCreate(savedInstanceState); setContentView(R.layout.

Autodelete_config); try{ db_conn.openDataBase(); } catch(SQLException sqle) { System.out. Println("error in opening data : "+sqle); } EditText mEditText=(EditText)findViewById(R.id. ADConfigName); mEditText.

SetOnKeyListener(new OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { System.out. Println("The key pressed onkeylistenere is having code: "+keyCode); System.out. Println("The key pressed onkeylistenere is having event: "+event); showResults(); return false; } }); } private static void showResults() { String texts = mEditText.getText().toString(); db_conn.

CreateADFilter(text, "any", "any"); } }.

I have four EditText and two buttons namely, save and review button. If I press the save button EditText value is stored in to the database and on clicking the review button saved value in the database is listed in ListView. How is this done please anybody explain to me.

How I add edittext value in to database pls any body help me!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions