final ProfileKcalDBClass myProKcalDb = new ProfileKcalDBClass(this);
final ArrayList<HashMap<String, String>> ProfileKcalList = myProKcalDb.SelectAllData();
ListView ListViewShowProKcal = (ListView) findViewById(R.id.listViewShowProKcal);
SimpleAdapter sAdapProKcal;
int[] num = {};
int sum = 0;
for(int i = 0; i < num.length; i++){
sum = sum + num[i];
}
Toast.makeText(getApplicationContext(), "" + sum, Toast.LENGTH_LONG).show();
sAdapProKcal = new SimpleAdapter(MainActivity.this, ProfileKcalList, R.layout.activity_column_profile_kcal,
new String[] {"kcal_pro_name", "kcal_pro_unit", "kcal_pro_total"},
new int[] {R.id.Name, R.id.Unit, R.id.Total});
ListViewShowProKcal.setAdapter(sAdapProKcal);