android (3) 썸네일형 리스트형 android sqlite 정리 - select android sqlite에서 select 문을 cursor을 이용해서 사용할때,물론 IDE에서 도움말을 뿌려주긴 하지만 영 헷갈린다. String from = ""; String[] selectArgs = {}; String where = ""; String[] whereArgs = {}; String groupby = ""; String having = ""; String orderby = ""; String limits = ""; Cursor cursor = db.query(from, selectArgs, where, whereArgs, groupby, having, orderby, limits); @string resource에 parsing 없이 문자열 넣기 출처 : http://stackoverflow.com/questions/4207068/add-more-than-one-string-to-a-textview Hello, %1$s! You have %2$d new messages. Resources res = getResources(); String text = String.format(res.getString(R.string.welcome_messages), username, mailCount); 쓸일이 있을까 싶지만... android.content.res.Resources$NotFoundException: String resource ID android.content.res.Resources$NotFoundException: String resource ID 오류로 검색해보면 다들 해결책을 알고서는 어이없는 ㅋㅋ를 날리는 것을 볼 수 있다.아오...TextView에 int 타입 값을 직접넣으면 위와 같은 오류가 발생한다. -_- String.valueOf()등으로 값을 String으로 바꿔서 넣어주자... 이전 1 다음