차근차근 915

[ study ] 다이어리 어플 만들어보기 2 - 부가설명4

액티비티 호출방법 21. startActivity- 단순히 호출한 Activity를 호출하는 Method- 일방적 연계성만을 가지고 있는 경우, 결과를 return받을 필요가 없는 경우 2. startActivityForResult- Activity호출에 따라 수행된 결과를 리턴해야 할 경우- 쌍방간의 연계성이 있는 경우에 사용 SimpleCursorAdapter [Android] SimpleCursorAdapter를 이용한 CustomListView 만들기http://roter.tistory.com/173 내가 참고한 소스코드부분에서 몰라서 찾아봤는데 위의 블로그에 알맞은 설명이 있다. Cursor cursor = dbHelper.readData();String[] from = new String[]{..

[ study ] 다이어리 어플 만들어보기 2 - 부가설명3

안드로이드 listview checkbox ListView와 CheckBox 연동http://blog.daum.net/satomail/68 ListView에서 adapter로 custom view를 넣을 때 그 custom view 안의 checkbox와 ListView의 choice mode를 연동하는 방법.먼저 리스트뷰에서는 다음처럼 설정한다. listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 그러면 이제 체크 상태를 ListView가 관리하게 된다. 그런데, custom view를 쓰면 ListView가 그 안에 있는 뷰 중 Checkable이 있으면 checked 상태를 바꾼다. 이 점을 이용하면 checkbox와 연동하게 할 수 있다. getVie..

[ study ] 다이어리 어플 만들어보기 2 - 부가설명2

FLAG_ACTIVITY_CLEAR_TOP [Android] 스택에 쌓인 액티비티 모두 종료하기http://neoroid.tistory.com/201 [Android] 스택에 쌓인 액티비티 모두 종료하기2012/11/01 15:24 | 프로그래밍/안드로이드팁예를들어 A, B, C Activity가 있다고 칩시다. A에서 B로 갈 때 finish()를 하지 않고 갑니다. 즉, Intent intent = new Intent(A.this, B.class);startActivity(intent); startActivity(intent); 만 이용해서 이동한 것이지요. 그렇게 B로 이동한 후 또 C로 이동합니다. Intent intent = new Intent(B.this, C.class);startActivi..

[ study ] 다이어리 어플 만들어보기 2 - 부가설명1

검색어 : android sqlite cursor adapter listview Android SQLite DataBase With CursorAdapterhttp://www.tutorialsbuzz.com/2013/11/android-sqlite-database-with.html Android SQLite DataBase With CursorAdapterShare :The SQLite database is embedded into Android OS , which is very light weight and helps in creating and manipulate data in your application , The android SDK provides the "android.database.sql..

[ study ] 다이어리 어플 만들어보기 1 - 부가 설명 6

안드로이드 프로젝트를 하나 만들고 있는데sqlite를 써서 CRUD만 해보려고 한다.밑에 소스는 update부분인데. 실수했던 것을 적어 두려고 한다. line 5에서 만들어 두었던 DBManager.class에 update()를 사용하기 위해 선언했다.그리고 바로 line 34에서 dbHelper를 쓰려고 했는데 여러 방법을 써도 계속 에러가 났다.널포인트 익셉션 음. 대리님께서 보시더니. line 14를 추가했다. 된다.DBManager라는 상자에 dbHelper라는 이름은 줬지만 내용물은 담지 않았던 것이다.정신차리고 다시 해봐야 겠다.//수정화면public class revise_writing extends Activity { private TextObject textobject;private E..

[ study ] 다이어리 어플 만들어보기 1 - 부가 설명 5

android:adjustViewBounds이미지가 표현하고자 하는 레이아웃보다 클 때 비율유지여부 android activity안드로이드 activity life cyclehttp://hyeonstorage.tistory.com/149안드로이드 Activity life cycle어플리케이션 component들은 각각의 life cycle에 따라 자신의 메모리 , 리소스, 데이터 뿐만 아니라 자신의 상태도 관리해야 한다.자연스럽게 컴포넌트들간의 화면이나 작업 전환이 가능하며, 더 이상 사용되지 않는 컴포넌트는 소멸될 수 있다. 1. Activity 와 Task- Task런타임 시점에서는 어플리케이션 간의 경계가 무의미하며, 비록 서로 다른 어플리케이션에 존재하는 Activity라 하더라고, 함께 실행되는..

[ study ] 다이어리 어플 만들어보기 1 - 부가 설명 4

java.lang.IllegalStateException: Couldn't read row 0, col 2 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. while (cursor.moveToNext()) { int bookId = cursor.getInt(cursor.getColumnIndex("bookiD")); } SQLite 2탄 – 데이터와 인덱스 구조!!http://gywn.net/2013/09/let-me-know-data-index-of-sqlite/ - sqlite 의 각각의 row는 고유의 8byte 정수 타입으 rowID를 가진다.- rowID 순서로 데이터가 저..

반응형