title: Store data in Database Android
body: <p>i made a TextView that displayed value with multiple line<br />
  and i want to keep that value in a SQLite database. this is the code i use:</p>
  <pre><code>public void AddContact(Contact c)
  {
      SQLiteDatabase db=this.getWritableDatabase();
      ContentValues cv=new ContentValues();
      cv.put(&quot;nom&quot;,c.getNom());
      Scanner s = new Scanner(String.valueOf(cv));
      while (s.hasNextLine()){
          String line = s.nextLine();
          db.insert(&quot;contact&quot;,line,cv);
          
      }
  </code></pre>
  <p>the problem is when i save the value, the whole value is inserted into one cell. i want the value to be separated per line then inserted into a single cell for each line despite I am using Scanner method with the insertion data but it dosen't function.
  is there any way to do that?</p>