Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Processing Bitmaps Off the UI Thread ã®å 容ã«è£è¶³ãä»ãã¦è§£èª¬ãã¦ã¾ãã ååã®ã¨ã³ããªã¼ã§å¤§ããç»åãå¹æçã«èªãè¾¼ãæ¹æ³ã解説ãã¾ãããããã³ã¼ããããã¼ã¿ããã£ã¹ã¯ããããã¯ã¼ã¯ã«ããå ´åãBitmapFactory ã® decode* ã¡ã½ãã㯠UI ã¹ã¬ããã§è¡ã£ã¦ã¯ããã¾ããï¼ã¨ãããã¡ã¢ãªä¸ä»¥å¤ã®ãã¼ã¿ãèªã¿è¾¼ãå ´åã¯å ¨é¨ã ãï¼ã ãããã®å¦çã¯ãã£ã¹ã¯ããããã¯ã¼ã¯ã®ã¹ãã¼ããç»åã®ãµã¤ãºãCPUã®ãã¯ã¼ãªã©ãã¾ãã¾ãªè¦å ã§å®äºã¾ã§ã®æéãå¤ããããã¤å®äºããã®ããããã¾ããã ããç»åã®ãã³ã¼ãå¦ç㧠UI ã¹ã¬ããããããã¯ãã¦ãã¾ãã¨ãææª ANR ãçºçãã¾ãã ããã§ãAsyncTask ã使ã£ã¦ããã¯ã°ã©ã³ã㧠Bitmap ãèªã¿è¾¼ãããã«ãã¾ãã â AsyncTask ã使ã ç¹ã«ä½ãèããªãã§ä½ãã¨ããã£ã¨ãããªæã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}