I am adding a construct data from my data fetch with a double variable. and i have an error retrieve upon my data. just check my codes :)
my parameter:
Double xtop,xbot,yleft,yright,alat,alon;
public void constData{
//myLocation
lati = cursor2.getString(cursor2.getColumnIndex
(DatabaseHelper.LATITUDE));
longi = cursor2.getString(cursor2.getColumnIndex
(DatabaseHelper.LONGITUDE));
//myDestination
alat=Double.valueOf(userList.get(position).getLatitude());
alon=Double.valueOf(userList.get(position).getLongitude());
//I have problem on adding data here:
xtop=(alat)+(0.0000100);
xbot=(alat)-(0.0000100);
yleft=(alon)+(0.0000100);
yright=(alon)-(0.0000100);
//LogData
Log.d("alot",""+lati);
Log.d("alot",""+longi);
Log.d("alot",""+alat);
Log.d("alot",""+alon);
Log.d("alot",""+xbot);
Log.d("alot",""+xtop);
Log.d("alot",""+yright);
Log.d("alot",""+yleft);
}
and this is the result on my log cat:
the xtop/xbot/yright/yleft data is not in decimal. thank you for the help. :)