mysqldbからのデータの取得についてあなたの助けが必要です。配列リストに文字列を追加できません。私のリストは宣言します
ArrayList<HandleListReport> reportList = new ArrayList<HandleListReport>();
ここに私のコード
report_data = json.getJSONArray(TAG_REPORT_DATA);
for (int i = 0; i < report_data.length(); i++) {
//storing variable
JSONObject c = report_data.getJSONObject(i);
String reportID = c.getString(TAG_REPORT_ID);
String userID = c.getString(TAG_UID);
String projectName = c.getString(TAG_PROJECT_NAME);
String localWork = c.getString(TAG_LOCATION);
String timeStart = c.getString(TAG_TIME_START);
String timeEnd = c.getString(TAG_TIME_END);
Log.d(TAG_LOCATION, localWork);
// add data to Arraylist
reportList.add(new HandleListReport(reportID, userID, projectName, localWork, timeStart, timeEnd));
私の問題私のlistReportに文字列データがありません。Logcat show reportList ---> []
ご回答ありがとうございます!