{"id":1035,"date":"2017-04-24T11:45:04","date_gmt":"2017-04-24T02:45:04","guid":{"rendered":"https:\/\/133.242.23.245\/blog\/?p=1035"},"modified":"2017-04-24T12:02:47","modified_gmt":"2017-04-24T03:02:47","slug":"android%e5%88%9d%e5%bf%83%e8%80%85%e3%81%8candroid%e6%8a%80%e8%a1%93%e8%80%85%e8%aa%8d%e5%ae%9a%e8%a9%a6%e9%a8%93%e3%82%92%e5%8f%97%e3%81%91%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%80%e3%81%9d%e3%81%ae-11","status":"publish","type":"post","link":"https:\/\/www.kara-kuri.jp\/blog\/?p=1035","title":{"rendered":"Android\u521d\u5fc3\u8005\u304cAndroid\u6280\u8853\u8005\u8a8d\u5b9a\u8a66\u9a13\u3092\u53d7\u3051\u3066\u307f\u308b\u3000\u305d\u306e\uff11\uff11"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u6700\u8fd1\u3001\u5225\u306e\u8a00\u8a9e\u306b\u624b\u3092\u51fa\u3057\u3066\u307f\u308b\u3082\u3084\u306f\u308a\u82e6\u6226\u3057\u3066\u3044\u308bAndroid\u521d\u5fc3\u8005\u3067\u3059\u3002<br \/>\n\u307e\u305a\u306f<a href=\"https:\/\/133.242.23.245\/blog\/?p=1014\">\u524d\u56de<\/a>\u306e\u6f14\u7fd2\u554f\u984c\u306e\u56de\u7b54\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>\u6f14\u7fd2\u554f\u984c\uff11\uff14\u306e\u56de\u7b54\uff1a\u30a4\uff0eA:Initialized B:DataSourceConfigured C:PrePared D:Recording E:Released<br \/>\n<a href=\"https:\/\/133.242.23.245\/blog\/wp-content\/uploads\/2017\/04\/MediaRecorder.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1031\" src=\"https:\/\/133.242.23.245\/blog\/wp-content\/uploads\/2017\/04\/MediaRecorder-640x425.png\" alt=\"\" width=\"640\" height=\"425\" srcset=\"https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2017\/04\/MediaRecorder-640x425.png 640w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2017\/04\/MediaRecorder-768x511.png 768w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2017\/04\/MediaRecorder-1024x681.png 1024w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2017\/04\/MediaRecorder.png 1095w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>\u6f14\u7fd2\u554f\u984c\uff11\uff15\u306e\u56de\u7b54\uff1a\u30a6\uff0eFLV<br \/>\n\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30d3\u30c7\u30aa\u5f62\u5f0f\u306f\u300cH.263\u300d\u300cH.264 AVC\u300d\u300cMPEG-4 SP\u300d\u300cVP8\u300d\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>\u4eca\u56de\u306f\u300c\u7b2c9\u7ae0 \u30c6\u30b9\u30c8\u300d\u306b\u3064\u3044\u3066\u89e6\u308c\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u306e\u7ae0\u306f\u91cf\u306f\u5c11\u306a\u3044\u3067\u3059\u304c\u3001\u3084\u3084\u3053\u3057\u3044\u70b9\u304c\u6ca2\u5c71\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u3084\u3084\u3053\u3057\u3044\u3068\u601d\u3063\u3066\u3044\u308b\u306e\u304c\u3001\u5229\u7528\u3059\u308b\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u306e\u540d\u524d\u3067\u3001\u6700\u5f8c\u306b\u300c2\u300d\u304c\u4ed8\u3044\u3066\u3044\u305f\u308a\u3001\u4ed8\u304b\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u304b\u3089\u3067\u3059\u3002\u4e00\u3064\u4e00\u3064\u8aac\u660e\u3057\u3066\u3044\u304f\u306e\u306f\u898b\u3065\u3089\u3044\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8868\u306b\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u540d<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ActivityInstrumentationTestCase2<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u6a5f\u80fd\u30c6\u30b9\u30c8\uff08\u753b\u9762\u64cd\u4f5c\u306e\u30c6\u30b9\u30c8\u3084\u30a4\u30f3\u30c6\u30f3\u30c8\u306b\u5fdc\u7b54\u3059\u308b\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30c6\u30b9\u30c8\uff09\u306b\u4f7f\u7528\u3002<br \/>\nActivityInstrumentationTestCase\u306f\u5b58\u5728\u3059\u308b\u304c\u975e\u63a8\u5968\u3002<\/td>\n<\/tr>\n<tr>\n<td>ActivityUnitTestCase<\/td>\n<td>\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u5358\u4f53\u30c6\u30b9\u30c8\u306b\u4f7f\u7528\u3002\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306eonResume\u30e1\u30bd\u30c3\u30c9\u3084onPause\u30e1\u30bd\u30c3\u30c9\u3092\u9069\u5b9c\u767a\u884c\u3067\u304d\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>SingleLaunchActivityTestCase<\/td>\n<td>\u8907\u6570\u306e\u30c6\u30b9\u30c8\u3067\u4e00\u3064\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u4f7f\u3044\u56de\u3057\u305f\u3044\u5834\u5408\u306b\u4f7f\u7528\u3002<\/td>\n<\/tr>\n<tr>\n<td>ProviderTestCase2<\/td>\n<td>\u30b3\u30f3\u30c6\u30f3\u30c4\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u5358\u4f53\u30c6\u30b9\u30c8\u306b\u4f7f\u7528\u3002<br \/>\nProviderTestCase\u306f\u5b58\u5728\u3059\u308b\u304c\u975e\u63a8\u5968\u3002<\/td>\n<\/tr>\n<tr>\n<td>ServiceTestCase<\/td>\n<td>\u30b5\u30fc\u30d3\u30b9\u306e\u5358\u4f53\u30c6\u30b9\u30c8\u306b\u4f7f\u7528\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0a\u306e\u8868\u3092\u898b\u3066\u308f\u304b\u308b\u901a\u308a\u3001\u300c2\u300d\u304c\u4ed8\u3044\u3066\u3044\u308b\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u306b\u306f\u3001\u300c2\u300d\u304c\u4ed8\u304b\u306a\u3044\u30af\u30e9\u30b9\u3082\u5b58\u5728\u3057\u307e\u3059\u304c\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u975e\u63a8\u5968\u3068\u306a\u3063\u305f\u7406\u7531\u3082\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\uff08\u3082\u3057\u77e5\u3063\u3066\u3044\u308b\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u305f\u3089\u6559\u3048\u3066\u4e0b\u3055\u3044\u2026\uff09\u3002<\/p>\n<p>\u3042\u3068\u3084\u3084\u3053\u3057\u3044\u3068\u3044\u3046\u304b\u56f0\u308b\u306e\u304c\u3001\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u300cJUnit\u300d\u3067\u3059\u3002\u3053\u306e\u300cJUnit\u300d\u3067\u3059\u304c\u30012017\/4\/24\u73fe\u5728\u3001Android\u306f\u300cJunit4\u300d\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u300cAndroid\u6280\u8853\u8005\u8a66\u9a13\u3092\u53d7\u3051\u3066\u307f\u308b\u300d\u30b7\u30ea\u30fc\u30ba\u3092\u59cb\u3081\u305f\u3068\u304d\u306b\u3082\u8ff0\u3079\u307e\u3057\u305f\u304c\u3001\u8a66\u9a13\u554f\u984c\u306bEclipse\u304c\u51fa\u3066\u304f\u308b\u3088\u3046\u306a\u6642\u4ee3\u3067\u6b62\u307e\u3063\u3066\u3044\u308b\u70ba\u3001\u3053\u306e\u4ef6\u306b\u3064\u3044\u3066\u3082\u5168\u3066\u306e\u554f\u984c\u96c6\u3067\u300cJUnit3\u300d\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3068\u89e3\u8aac\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u4e2d\u306b\u306f\u300cJUnit4\u300d\u304c\u672a\u5bfe\u5fdc\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u3082\u306e\u3082\u3042\u308a\u307e\u3059\uff09\u3002\u5e78\u3044\u672c\u756a\u306e\u8a66\u9a13\u3067\u306f\u3001\u300cJUnit3\u300d\u306e\u5358\u8a9e\u306f\u898b\u304b\u3051\u3066\u3082\u3001\u300cJUnit4\u300d\u306e\u5358\u8a9e\u306f\u898b\u304b\u3051\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3001\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u554f\u3046\u554f\u984c\u304c\u51fa\u305f\u5834\u5408\u306f\u300cJUnit3\u300d\u3092\u9078\u3079\u3070\u826f\u3044\u3068\u601d\u3044\u307e\u3059\uff08\u4e07\u304c\u4e002\u3064\u3068\u3082\u51fa\u305f\u5834\u5408\u306f\u3069\u3053\u306b\u8a34\u3048\u308c\u3070\u826f\u3044\u306e\u3060\u308d\u3046\u3068\u3082\u601d\u3044\u307e\u3059\u304c\u2026\uff09\u3002<\/p>\n<p>\u3042\u3068\u306f\u30c6\u30b9\u30c8\u7528\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u95a2\u3059\u308b\u554f\u984c\u3082\u51fa\u984c\u3055\u308c\u3001\u81ea\u5206\u304c\u5b9a\u7fa9\u3057\u305f\u30c6\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u306e\u524d\u306b\u547c\u3070\u308c\u308b\u306e\u304cSetup()\u30e1\u30bd\u30c3\u30c9\u3001\u5f8c\u306b\u547c\u3070\u308c\u308b\u306e\u304ctearDown()\u30e1\u30bd\u30c3\u30c9\u3068\u3001\u3053\u308c\u307e\u305f\u3084\u3084\u3053\u3057\u3044\u70b9\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>\u3055\u3066\u3001\u4eca\u56de\u3082\u6f14\u7fd2\u554f\u984c\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\uff08\u203b\u4e0a\u306e\u5185\u5bb9\u3092\u898b\u308c\u3070\u308f\u304b\u308b\u554f\u984c\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u898b\u306a\u3044\u3067\u3084\u3063\u3066\u307f\u3066\u4e0b\u3055\u3044\uff09<\/p>\n<p>\u6f14\u7fd2\u554f\u984c\uff11\uff16\uff1a\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u753b\u9762\u64cd\u4f5c\u306e\u30c6\u30b9\u30c8\u30af\u30e9\u30b9<br \/>\n\u6b21\u306e\u5185\u3001\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u753b\u9762\u64cd\u4f5c\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3046\u306e\u306b\u9069\u3057\u305f\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u306f\u3069\u308c\u3067\u3059\u304b\uff1f<\/p>\n<ul>\n<li>\u30a2\uff0eActivityTestCase<\/li>\n<li>\u30a4\uff0eActivityInstrumentationTestCase<\/li>\n<li>\u30a6\uff0eActivityInstrumentationTestCase2<\/li>\n<li>\u30a8\uff0eActivityUnitTestCase<\/li>\n<\/ul>\n<p>&nbsp;<br \/>\n\u6f14\u7fd2\u554f\u984c\uff11\uff17\uff1a\u30c6\u30b9\u30c8\u7528\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9<br \/>\n\u6b21\u306e\u5185\u3001\u81ea\u5206\u304c\u5b9a\u7fa9\u3057\u305f\u30c6\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u305f\u5f8c\u306b\u547c\u3070\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u306f\u3069\u308c\u3067\u3059\u304b\uff1f<\/p>\n<ul>\n<li>\u30a2\uff0eSetUp()\u30e1\u30bd\u30c3\u30c9<\/li>\n<li>\u30a4\uff0eSetDown()\u30e1\u30bd\u30c3\u30c9<\/li>\n<li>\u30a6\uff0etearUp()\u30e1\u30bd\u30c3\u30c9<\/li>\n<li>\u30a8\uff0etearDown()\u30e1\u30bd\u30c3\u30c9<\/li>\n<\/ul>\n<p><strong>\uff08\u7b54\u3048\u306f\u6b21\u56de\u306b\u63b2\u8f09\u3057\u307e\u3059\u3002\uff09<\/strong><\/p>\n<hr \/>\n<p>\u6b21\u56de\u306f\u300c\u7b2c10\u7ae0 \u30cd\u30a4\u30c6\u30a3\u30d6\u300d\u306b\u3064\u3044\u3066\u89e6\u308c\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u6700\u8fd1\u3001\u5225\u306e\u8a00\u8a9e\u306b\u624b\u3092\u51fa\u3057\u3066\u307f\u308b\u3082\u3084\u306f\u308a\u82e6\u6226\u3057\u3066\u3044\u308bAndroid\u521d\u5fc3\u8005\u3067\u3059\u3002 \u307e\u305a\u306f\u524d\u56de\u306e\u6f14\u7fd2\u554f\u984c\u306e\u56de\u7b54\u3067\u3059\u3002 \u6f14\u7fd2\u554f\u984c\uff11\uff14\u306e\u56de\u7b54\uff1a\u30a4\uff0eA:Initialized B:DataSourceConfigured [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035"}],"collection":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1035"}],"version-history":[{"count":12,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1050,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions\/1050"}],"wp:attachment":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}