{"id":478,"date":"2013-12-07T12:29:43","date_gmt":"2013-12-07T03:29:43","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=478"},"modified":"2013-12-07T12:29:43","modified_gmt":"2013-12-07T03:29:43","slug":"androidandengine-%e3%83%aa%e3%82%bd%e3%83%bc%e3%82%b9%e3%81%ae%e8%a7%a3%e6%94%be","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=478","title":{"rendered":"[Android][AndEngine] \u30ea\u30bd\u30fc\u30b9\u306e\u89e3\u653e"},"content":{"rendered":"<p>Andengine\u3067\u30b7\u30fc\u30f3\u3092\u5207\u308a\u66ff\u3048\u3092\u884c\u3063\u3066\u3044\u308b\u3068\u3001\u3069\u3046\u3082\u3001\u30e1\u30e2\u30ea\u3092\u30ea\u30fc\u30af\u3057\u3066\u308b\u3002\u4ee5\u524d\u7d39\u4ecb\u3057\u305f\u3001<\/p>\n<p><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?t=dinagon-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4798130516&#038;ref=qf_sp_asin_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u3067\u3001\u4f5c\u3063\u3066\u3044\u308b\u3002ResourceUtil.java\u306eBitmapTexure\u304c\u89e3\u653e\u3055\u308c\u3066\u3044\u306a\u3044\u30d0\u30b0\u306f\u4e0b\u306e\u30b5\u30a4\u30c8\u3067\u4fee\u6b63\u3055\u308c\u3066\u3044\u308b\u306e\u3060\u304c<br \/>\n<a href=\"http:\/\/mokomiku.blog.fc2.com\/blog-entry-138.html\" title=\"http:\/\/mokomiku.blog.fc2.com\/blog-entry-138.html\" target=\"_blank\">http:\/\/mokomiku.blog.fc2.com\/blog-entry-138.html<\/a><br \/>\n\u3067\u3001BitmapTexture\u304c\u89e3\u653e\u3055\u308c\u308b\u306f\u305a\u306a\u306e\u3060\u304c\u3001\u30b3\u30e1\u30f3\u30c8\u51fa\u529b\u3057\u3066\u3001\u89e3\u653e\u3092\u78ba\u8a8d\u3057\u3066\u3082\u3001\u8aad\u307f\u8fbc\u3093\u3060\u30c6\u30af\u30b9\u30c1\u30e3\u5206\u30eb\u30fc\u30d7\u3057\u3066\u89e3\u653e\u3055\u308c\u3066\u3044\u306a\u3044\u3002<br \/>\n[java highlight=&#8221;5&#8243;]<br \/>\n\t\/\/ \u30d7\u30fc\u30eb\u3092\u958b\u653e\u3001\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u3092\u524a\u9664\u3059\u308b\u70ba\u306e\u95a2\u6570(\u30b7\u30fc\u30f3\u5207\u308a\u66ff\u3048\u306b\u884c\u3046\u70ba\u306b\u4fee\u6b63\u7248)<br \/>\n\tpublic void resetAllTexture() {<br \/>\n\t\t\/\/ Activity.finish()\u3060\u3051\u3060\u3068\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u306a\u30af\u30e9\u30b9\u304cnull\u306b\u306a\u3089\u306a\u3044\u70ba\u660e\u793a\u7684\u306bnull\u3092\u4ee3\u5165<br \/>\n\t\t\/\/System.out.println(&#8220;\u30c6\u30af\u30b9\u30c1\u30e3\u89e3\u653e&#8221;);<br \/>\n\t\t\/\/self = null; \u30b7\u30fc\u30f3\u5207\u308a\u66ff\u3048\u6642\u306b\u4f7f\u7528\u3059\u308b\u306e\u3067\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u306f\u89e3\u653e\u305b\u305a\u306b\u4f7f\u7528\u3057\u7d9a\u3051\u308b\u305f\u3081\u306b\u305d\u306e\u307e\u307e\u3067\u30fb\u30fb\u30fb<br \/>\n\t\ttextureRegionPool.clear();<br \/>\n\t\ttiledTextureRegionPool.clear();<\/p>\n<p>\t\tif (btaPool.size() > 0) {<br \/>\n\t\t\tfor (int i = 0; i < btaPool.size(); i++) {\n\t\t\t\t\/\/System.out.println(\"bta\u89e3\u653e\");\n\t\t\t\tBitmapTextureAtlas b = btaPool.get(i);\n\t\t\t\tb.unload();\n\t\t\t\tb.clearTextureAtlasSources();\n\t\t\t\tb = null;\n\t\t\t}\n\t\t}\n\t\tbtaPool.clear();\n\t\tif (bbtaPool.size() > 0) {<br \/>\n\t\t\tfor (int i = 0; i < bbtaPool.size(); i++) {\n\t\t\t\t\/\/System.out.println(\"bbta\u89e3\u653e\");\n\t\t\t\tBuildableBitmapTextureAtlas b = bbtaPool.get(i);\n\t\t\t\tb.unload();\n\t\t\t\tb.clearTextureAtlasSources();\n\t\t\t\tb = null;\n\t\t\t}\n\t\t}\n\t\tbbtaPool.clear();\n\t\tSystem.gc();\n\t\t\n\t}\n\n\t\n\t\/\/ \u30d7\u30fc\u30eb\u3092\u958b\u653e\u3001\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u3092\u524a\u9664\u3059\u308b\u70ba\u306e\u95a2\u6570(\u30dd\u30fc\u30ba\u3068\u7d42\u4e86\u7528)\n\tpublic void resetAllTexturePause() {\n\t\t\/\/ Activity.finish()\u3060\u3051\u3060\u3068\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u306a\u30af\u30e9\u30b9\u304cnull\u306b\u306a\u3089\u306a\u3044\u70ba\u660e\u793a\u7684\u306bnull\u3092\u4ee3\u5165\n\t\tself = null;\n\t\ttextureRegionPool.clear();\n\t\ttiledTextureRegionPool.clear();\n\t}\n[\/java]\n\u3000\u3044\u308d\u3044\u308d\u3001\u8a66\u3057\u3066\u3044\u308b\u3046\u3061\u306b\u3001\u30b7\u30fc\u30f3\u306e\u5207\u308a\u66ff\u308f\u308a\u6642\u306bresetAllTexture()\u3092\u631f\u3093\u3067\u3001self = null;\u3092\u6d88\u3057\u3066\u3084\u308a\u3001\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u3092\u89e3\u653e\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3089\u3001\u30b7\u30fc\u30f3\u5207\u308a\u66ff\u3048\u6642\u306b\u30c6\u30af\u30b9\u30c1\u30e3\u304c\u3061\u3083\u3093\u3068\u89e3\u653e\u3055\u308c\u3066\u3044\u304f\u3053\u3068\u304c\u308f\u304b\u3063\u305f \u3002\u305d\u306e\u304b\u308f\u308a\u3001\u3044\u307e\u307e\u3067\u4f7f\u7528\u3057\u3066\u3044\u305fresetAllTexture()\u3068\u306f\u5225\u306b <a style=\"color: rgb(36, 12, 135); text-decoration:none; font-weight: normal\" href=\"https:\/\/slotsduck.com\/slots-strategies-and-tips\/best-online-pokies-online-casinos-in-australia\/\">best casino online<\/a>\u3001Pause\u3068\u7d42\u4e86\u6642\u306bresetAllTexturePause()\u3092\u547c\u3076\u3088\u3046\u306b\u3057\u305f\u3002\u3053\u308c\u3067\u3001\u30ea\u30fc\u30af\u3059\u308b\u3053\u3068\u306f\u306a\u304f\u306a\u3063\u305f\u6c17\u304c\u3059\u308b\u3002<br \/>\n\u3000\u3082\u3061\u308d\u3093\u3001Sprite\u306a\u3069\u306eDispose\u3084Detach\u306f\u3061\u3083\u3093\u3068\u884c\u3063\u305f\u308a\u3001\u97f3\u95a2\u9023\u3082\u3001release\u3057\u3066null\u3092\u7a81\u3063\u8fbc\u3093\u3067\u304a\u304f\u3079\u304d\u3060\u3068\u304a\u3082\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Andengine\u3067\u30b7\u30fc\u30f3\u3092\u5207\u308a\u66ff\u3048\u3092\u884c\u3063\u3066\u3044\u308b\u3068\u3001\u3069\u3046\u3082\u3001\u30e1\u30e2\u30ea\u3092\u30ea\u30fc\u30af\u3057\u3066\u308b\u3002\u4ee5\u524d\u7d39\u4ecb\u3057\u305f\u3001 \u3067\u3001\u4f5c\u3063\u3066\u3044\u308b\u3002ResourceUtil.java\u306eBitmapTexure\u304c\u89e3\u653e\u3055\u308c\u3066\u3044\u306a\u3044\u30d0\u30b0\u306f\u4e0b\u306e\u30b5\u30a4\u30c8\u3067\u4fee\u6b63\u3055\u308c\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[13,5,14],"tags":[],"class_list":["post-478","post","type-post","status-publish","format-standard","hentry","category-andengine","category-android","category-java","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=478"}],"version-history":[{"count":8,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/478\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/478\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}