안녕하세요 안드로이드를 공부하는 학생입니다.
안드로이드로 wcf를 이용해서 DB를 연동하는 중
DB값을 배열로 얻어와서 안드로이드에서 리스뷰에 뿌리고 싶은데
db에서 얻어오는 배열이 ["a", "b", "c"] 이런식으로 한 문장채로 오더군요
ArrayList ac = new ArrayList();
string comtext = "QInfo";
SqlCommand command = new SqlCommand(comtext, con);
command.CommandType = System.Data.CommandType.StoredProcedure;
con.Open();
SqlDataReader rd = command.ExecuteReader();
while (rd.Read())
{
ac.Add(rd["title"].ToString());
}
rd.Close();
con.Close();
return ac;
이런 식으로 했는데 무슨 방법이 있을까요?