How to insert new data of Geo-location into SQLite database every 30 seconds in android?
<pre><code>    GeoInformation geoInformation = new GeoInformation(d,cellid,locationid,lon,lat,m,mn,address,Signalstrength,ipAddress,ttt,timestamp,carrier);
    Gson gson = new Gson();
    String jsonData = gson.toJson(geoInformation);
    Log.i("**",jsonData);
    Toast.makeText(MainActivity.this, jsonData, Toast.LENGTH_SHORT).show();
    Toast.makeText(MainActivity.this, jsonData, Toast.LENGTH_SHORT).show();
    geolocationtDbHelper = new GeolocationDbHelper(context);
    sqLiteDatabase = geolocationtDbHelper.getWritableDatabase();
    geolocationtDbHelper.addInformation(timeData, jsonData, sqLiteDatabase);
    Toast.makeText(getBaseContext(),"Data Saved", Toast.LENGTH_LONG).show();
    geolocationtDbHelper.close();
</code></pre>