title: Error log on android sqlite database
body: <p>I use  sqlite In my android application.
  I create my database and everything is good, but on LogCat, I have some error, I dont know what does mean,can you help me about that error?
  are they important?
  <img src="https://i.stack.imgur.com/HZBTo.jpg" alt="enter image description here"></p>
  
  <p>My code:</p>
  
  <pre><code>public class Helper extends SQLiteOpenHelper {
  
  public Helper(Context params)
  {
      super(params, RastakDatabse.DATABASE_NAME, null, 3);
  
  }   
  
  @Override
  public void onCreate(SQLiteDatabase db) {
        String CREATE_TABLE =  "CREATE TABLE " + Province.TABLE_NAME + " (" +
                  Province._ID + " INTEGER PRIMARY KEY," +
                  Province.PROVINCE_NAME +" TEXT ";
  
  
          db.execSQL(CREATE_TABLE);
  
          CREATE_TABLE =   "CREATE TABLE " + City.TABLE_NAME + " (" +
                  City.CITY_ID + " INTEGER PRIMARY KEY," +
                  City.CITY_NAME +" TEXT, " +
                  City.PROVINCE_ID +"INTEGER)";
  
  
          db.execSQL(CREATE_TABLE);
  
          CREATE_TABLE ="CREATE TABLE " + Company.TABLE_NAME + " (" +
                  Company.COMPANY_ID +" INTEGER PRIMARY KEY," +
                  Company.CITY_ID +" INTEGER, " +
                  Company.COMPANY_NAME+" TEXT," +
                  Company.LOCATION+" TEXT ," +
                  Company.GUILD +" INTEGER)" ;
          db.execSQL(CREATE_TABLE);
  
  
          CREATE_TABLE= "CREATE TABLE " + Guild.TABLE_NAME + " (" +
          Guild.GUILD_ID + " INTEGER PRIMARY KEY," +
          Guild.GUILD_NAME +" TEXT)";
          db.execSQL(CREATE_TABLE);
  
  }
  
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
  
      db.execSQL("DROP TABLE IF EXISTS "+RastakDatabse.DATABASE_NAME);    
  }
  
  
  public void add(String name,String loc,long id) {
      SQLiteDatabase db=this.getWritableDatabase();
      ContentValues values=new ContentValues();
      values.put("id",id );
      values.put("name",name );
      values.put("loc",loc);   
      db.insert("Location", null, values);
      db.close();
  }
  </code></pre>
  
  <p>Main ACtivity:</p>
  
  <pre><code>public void DownloadLocation() {
      Query q=new Query(getApplicationContext());
  
      final Helper hel=new Helper(getApplicationContext());
  
              List&lt;Location&gt; Loc=new ArrayList&lt;Location&gt;();  
                JSONObject toSend = new JSONObject();
  
               int db_count = hel.check();    
                  try {           
                      toSend.put("city_id", 1);
                 String result="";     
                  JSONTransmitter transmitter = new JSONTransmitter();
                  transmitter.url="http://192.168.1.5/include/json/locations.php";
                AsyncTask&lt;JSONObject, JSONObject, JSONObject&gt; jo=  transmitter.execute(new JSONObject[] {toSend});
               JSONObject jjjj=jo.get();
              JSONArray array=jjjj.getJSONArray("locations");
              Log.d("count:::", array.length()+"");
          for (int i = 0; i &lt; array.length(); i++) {
              Location lo=new Location();
  
                  JSONObject json_data = array.getJSONObject(i);
                  JSONArray arr1=json_data.getJSONArray("location");
                  hel.add(arr1.getString(1), arr1.getString(2),arr1.getInt(0));
              Log.i("SDFDS", arr1.getString(2)); 
              lo.id=arr1.getInt(0);  
              lo.name=arr1.getString(1);
              lo.loc=arr1.getString(2);
              Loc.add(lo);
              hel.close();   
  
                  } 
                  }   
          catch (JSONException e) {
              Log.e("EROOR1", e.getMessage());  
              } 
                  catch (InterruptedException e) {
              Log.e("EROOR1", e.getMessage());        
          } 
                  catch (ExecutionException e) {
              Log.e("EROOR2", e.getMessage());
          } 
  
          }
  </code></pre>