๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ป Computer/Android

(7)
SQLite Database ์™€ Content provider 1. SQLite Database๋Š” SQLite OpenHelper ํด๋ž˜์Šค๋ฅผ ์ƒ์†๋ฐ›์€ DBhelper๋ฅผ ํ†ตํ•ด ํ…Œ์ด๋ธ”์„ ๋งŒ๋“ค์–ด ์ƒ์„ฑํ•œ๋‹ค. *์ด๋•Œ ํ…Œ์ด๋ธ”์— ์‚ฌ์šฉ๋  ํ…Œ์ด๋ธ”๋ช…, column๋ช…๋“ค์€ Constant Class๋ฅผ ๋”ฐ๋กœ ๋งŒ๋“ค์–ด ๊ด€๋ฆฌํ•œ๋‹ค. SQLite OpenHelper Public Methods - abstract void onCreate (SQLiteDatabase db) : ํ…Œ์ด๋ธ” ์ƒ์„ฑ ์ฝ”๋“œ -> executeSQL(ํ…Œ์ด๋ธ”๋ช…) - abstract void onUpgrade (SQLiteDatabase db, int oldVersion, int newVersion) : ๊ตฌ๋ฒ„์ „ db์™€ ์‹ ๋ฒ„์ „ db์™€ ๋น„๊ต ํ›„ ์—…๋ฐ์ดํŠธ - void onOpen (SQLiteDatabase db) : ์ƒ์„ฑ ๋ฐ ์—…๋ฐ์ดํŠธ ์ดํ›„..
์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค Github Push Partially failed ์ง€๋‚œ ๋ฒˆ์— git bash๋กœ commit push ํ•˜๋Š” ๋ฐ ๊ณ„์† ์ž๊ฒฉ์ด ์—†๋‹ค์˜€๋‚˜ ๋ญ ๊ทธ๋Ÿฐ ์˜ค๋ฅ˜๊ฐ€ ๋– ์„œ ์ œ์–ดํŒ > ์‚ฌ์šฉ์ž๊ณ„์ • > ์ž๊ฒฉ์ฆ๋ช…๊ด€๋ผ์ž > ์›น ์ž๊ฒฉ ์ฆ๋ช… ๊ด€๋ฆฌ ๋“ค์–ด๊ฐ€์„œ git ์•„์ด๋”” ๋น„๋ฒˆ ๋ฐ”๊ฟจ๋Š”๋ฐ, ๋˜ ์ด๋Ÿฐ ์˜ค๋ฅ˜๊ฐ€ ๋–ด๋‹ค. ๊ทธ๋ž˜์„œ ์ฒ˜์Œ๋ถ€ํ„ฐ init์„ ๋‹ค์‹œํ•จ git init (reinitialized) git add . (re commit) git status (add ๋œ๊ฑฐ ํ™•์ธ) git commit -m "second commit" git remote add MyMovie http://๋‚ด ๋ ˆํผ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ//.git (์–ด๋–ค ๋ธ”๋กœ๊ทธ์—์„œ ssh๊ฐ€ ์•„๋‹ˆ๋ผ http๋กœ ํ•˜๋ฉด ๋œ๋‹ค๊ธธ๋ž˜ ์ด๊ฑธ๋กœ ๋‹ค์‹œํ•จ) git config --list (์—ฌ๊ธฐ์„œ ๊ฐ‘์ž๊ธฐ END๋œจ๊ณ  ์•ˆ๋‚˜๊ฐ€์ง,, ๊ทธ๋ž˜์„œ q๋ˆŒ๋Ÿฌ์„œ ๊ทธ๋ƒฅ ํƒˆ์ถœํ•จ) git pu..