ä»ã®ç«¯æ«ã ã¨10Mãã¯ã»ã«ãè¶ããã«ã¡ã©ãæè¼ãã端æ«ãæ®éã«ãªã£ã¦ãã¦ããããã®ãã¡ã¤ã«ãµã¤ãºãæ°MBã«åã³ã¾ãã Androidã§BitmapFactoryãå©ç¨ãã¦ãã©ãã©ã¤ãã©ãªã¼ããç»åãèªã¿è¾¼ãã ãããã¨æãã¾ããããã®ã¾ã¾ãã®ç»åãèªã¿è¾¼ãã§ãã¾ãã¨ããã°ãã°OutOfMemoryã¨ãªãã¢ããªãå¼·å¶çµäºãã¦ãã¾ãã¾ãã ããã§ãå®éã«ç»åãèªã¿è¾¼ãåã«ããç¨åº¦ç¸®å°ãã¦ããèªã¿è¾¼ããã¨ã§ãã¡ã¢ãªã足ããªããªããã¨ãé²ããã¨ããã®ãä»åã®ãã¿ã§ãã ##BitmapFactory.Optionsã®inSampleSizeãæå®ãã¦ç»åã縮å°ããç¶æ ã§èªã¿è¾¼ã å¦çã®æµãçã«ã¯ã¾ãç»åã®ãµã¤ãºãåå¾ãã¦ããµã¤ãºã大ããã£ãã縮å°æå®ãã¦ããèªã¿è¾¼ãããã¨ããæãã§ãã InputStream inputStream = getContentResolver().openInputS
{{#tags}}- {{label}}
{{/tags}}