{"id":34,"date":"2016-01-25T00:40:33","date_gmt":"2016-01-24T15:40:33","guid":{"rendered":"http:\/\/www.hundredapps.net\/?p=34"},"modified":"2017-11-10T09:51:49","modified_gmt":"2017-11-10T00:51:49","slug":"android%e3%82%a2%e3%83%97%e3%83%aa%e4%bd%9c%e6%88%90%e3%81%a7%e5%a4%a7%e4%ba%8b%e3%81%aa%e3%80%81activity%e3%81%a3%e3%81%a6%e4%bd%95%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.hundredapps.net\/?p=34","title":{"rendered":"android\u30a2\u30d7\u30ea\u4f5c\u6210\u3067\u5927\u4e8b\u306a\u3001activity\u3063\u3066\u4f55\uff1f"},"content":{"rendered":"<p>Activity\u3068\u306f\u3001Android\u306e\u753b\u9762\u3092\u69cb\u6210\u3059\u308b\u3082\u306e\u3067\u3059\u3002 \u8868\u793a\u3055\u308c\u308b\u3001\u5165\u529b\u6b04\u3001\u30dc\u30bf\u30f3\u3001\u30ea\u30b9\u30c8\u306a\u3069\u3092\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u3002 \u7c21\u5358\u306a\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u3001android\u306e\u30db\u30fc\u30e0\u753b\u9762\u304b\u3089\u30a2\u30a4\u30b3\u30f3\u3092 \u30bf\u30c3\u30d7\u3059\u308b\u3068\u3001android\u5074\u3067\u5fc5\u8981\u306a\u6e96\u5099\u3092\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f \u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u30af\u30e9\u30b9\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002 \u307e\u305f\u3001\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u30af\u30e9\u30b9\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9 \u3057\u3001\u305d\u3053\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u306b\u3088\u308a\u3001\u52d5\u4f5c\u3055\u305b\u308b \u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u3001\u958b\u59cb\u3055\u308c\u3066\u3001\u7d42\u4e86\u3055\u308c\u308b\u307e\u3067\u3092 \u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3068\u547c\u3073\u3001 \u3053\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3068\u4e00\u7dd2\u306b\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb(\u72b6\u614b\u9077\u79fb)\u3068\u5404\u30e1\u30bd\u30c3\u30c9<\/h2>\n<a href=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/activity-image01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14\" src=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/activity-image01.png\" alt=\"activity-image01\" width=\"867\" height=\"917\" \/><\/a>\n<p>\u307e\u305a\u3001\u4e0a\u8a18\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u8aac\u660e\u3067\u3059\u3002<\/p>\n<table style=\"height: 172px;\" width=\"713\">\n<tbody>\n<tr>\n<td>\u30e1\u30bd\u30c3\u30c9<\/td>\n<td>\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>onCreate()<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u3001\u751f\u6210\u3055\u308c\u305f\u6700\u521d\u306e1\u56de\u76ee\u306e\u6642\u306b\u3001\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9<\/td>\n<\/tr>\n<tr>\n<td>onStart()<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u3001\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u308b\u6642\u306b\u3001\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9<\/td>\n<\/tr>\n<tr>\n<td>onResume()<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u3001\u5168\u9762\u306b\u306a\u308b\u6642\u306b\u3001\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9<\/td>\n<\/tr>\n<tr>\n<td>onPause()<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30f3\u30c9\u306b\u79fb\u52d5\u3059\u308b\u6642\u306b\u3001\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9<\/td>\n<\/tr>\n<tr>\n<td>onStop()<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u3001\u753b\u9762\u304b\u3089\u898b\u3048\u306a\u304f\u306a\u308b\u6642\u306b\u3001\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9<\/td>\n<\/tr>\n<tr>\n<td>onDestroy()<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u3001\u7d42\u4e86\u3059\u308b\u6642\u306b\u3001\u547c\u3073\u51fa\u3055\u308c\u308b\u30e1\u30bd\u30c3\u30c9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nActivity\u30af\u30e9\u30b9\u3067\u3001\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001Activity\u304c\u3042\u308b\u72b6\u614b\u306b\u306a\u3063\u305f\u969b\u306b\u81ea\u52d5\u7684\u306b\u547c\u3070\u308c\u3001\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u308b\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u6700\u7d42\u7ae0\u3067\u7d39\u4ecb\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u30e1\u30e2\u30a2\u30d7\u30ea\u306eUI\u753b\u9762\u3092\u4f8b\u306b\u3068\u308a\u3001\u3069\u3046\u3044\u3046\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3001\u72b6\u614b\u9077\u79fb\u3059\u308b\u306e\u304b\u3092\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30db\u30fc\u30e0\u753b\u9762\u304b\u3089\u30ea\u30b9\u30c8\u753b\u9762\u3078<\/h2>\n<a href=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/home-simpleMemo01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-308\" src=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/home-simpleMemo01.png\" alt=\"home-simpleMemo01\" width=\"902\" height=\"574\" \/><\/a>\n<p style=\"float: left; margin-right: 5px;\"><a href=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/sampleMemoApp-lifeCycle01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-312\" src=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/sampleMemoApp-lifeCycle01.png\" alt=\"sampleMemoApp-lifeCycle01\" width=\"223\" height=\"394\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u30a2\u30d7\u30ea\u306e\u30a2\u30a4\u30b3\u30f3\u304c\u30bf\u30c3\u30d7\u3055\u308c\u308b\u3068\u3001<br \/>\nonCreate \u21d2 onStart =&gt; onResume\u21d2\u5b9f\u884c\u4e2d\u3068\u3044\u3046\u6d41\u308c\u3067\u72b6\u614b\u9077\u79fb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2 style=\"clear: both;\">\u30e1\u30e2\u306e\u30ea\u30b9\u30c8\u753b\u9762\u304b\u3089\u7de8\u96c6\u753b\u9762\u3078\u306e\u9077\u79fb<\/h2>\n<a href=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/sampleMemoApp-UI-Moving011.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-304\" src=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/sampleMemoApp-UI-Moving011.png\" alt=\"sampleMemoApp-UI-Moving01\" width=\"941\" height=\"546\" \/><\/a>\n<p style=\"float: left; margin-right: 5px;\"><a href=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/android-lifecycle-ui-moving02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-318\" src=\"http:\/\/www.hundredapps.net\/wp-content\/uploads\/2016\/01\/android-lifecycle-ui-moving02.png\" alt=\"android-lifecycle-ui-moving02\" width=\"409\" height=\"488\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u30ea\u30b9\u30c8\u753b\u9762\u304b\u3089\u7de8\u96c6\u753b\u9762\u306b\u9077\u79fb\u3059\u308b\u3068\u3001\u30ea\u30b9\u30c8\u753b\u9762\u306eActivity\u306f\u3001onPause\u21d2onStop\u3068\u3044\u3046\u72b6\u614b\u9077\u79fb\u306b\u306a\u308a\u3001<br \/>\nonPause\u4e2d\u306b\u3001\u623b\u308b\u30dc\u30bf\u30f3\u306a\u3069\u3092\u62bc\u3057\u305f\u969b\u306f\u3001onResume\u306b\u72b6\u614b\u9077\u79fb\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u7de8\u96c6\u753b\u9762\u306eActivity\u306f\u3001onCreate\u21d2onStart\u21d2onResume\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Activity\u3068\u306f\u3001Android\u306e\u753b\u9762\u3092\u69cb\u6210\u3059\u308b\u3082\u306e\u3067\u3059\u3002 \u8868\u793a\u3055\u308c\u308b\u3001\u5165\u529b\u6b04\u3001\u30dc\u30bf\u30f3\u3001\u30ea\u30b9\u30c8\u306a\u3069\u3092\u7ba1\u7406\u3057&#8230;<\/p>\n","protected":false},"author":1,"featured_media":244,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","has-post-thumbnail","category-android","article cf"],"_links":{"self":[{"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":2,"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions\/251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=\/wp\/v2\/media\/244"}],"wp:attachment":[{"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hundredapps.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}