-3
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();
の順に表示されます。 –