{"id":2865,"date":"2011-04-11T00:36:46","date_gmt":"2011-04-10T15:36:46","guid":{"rendered":"http:\/\/www.ekesete.net\/log\/?p=2865"},"modified":"2011-05-18T16:10:26","modified_gmt":"2011-05-18T07:10:26","slug":"nexusone%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e6%8e%a5%e7%b6%9a%e5%88%a4%e5%ae%9a%e3%82%92%e6%94%b9%e8%89%af%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.ekesete.net\/log\/?p=2865","title":{"rendered":"NexusOne\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u5224\u5b9a\u3092\u6539\u826f\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u3046\u3061\u306eAndroid\u7aef\u672b\u306b\u306fMiFi\u306eSim\u304c\u3055\u3055\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u65e5\u7d4c\u96fb\u5b50\u7248\u306e\u3088\u3046\u306bConnectivityService\u304b\u3089isAvailable\u306e\u5024\u3092\u53d6\u5f97\u3057\u3066<br \/>\n\u73fe\u5728\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u306e\u5834\u5408\u306b\u306f\u901a\u4fe1\u3057\u3066\u304f\u308c\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001framework\u3092\u3044\u3058\u3063\u3066\u3053\u306e\u90e8\u5206\u3092<del>\u7121\u7406\u77e2\u7406\u507d\u88c5<\/del>\u6539\u826f\u3057\u305f\u8a18\u9332\u3067\u3059\u3002<\/p>\n<h4>\u6ce8\u610f<\/h4>\n<p>\u81ea\u5206\u3067\u30d3\u30eb\u30c9\u3067\u304d\u306a\u3044\u3068\u4f7f\u3048\u306a\u3044\u306e\u3067\u308f\u304b\u308b\u4eba\u3057\u304b\u4f7f\u308f\u306a\u3044\u3067\u3057\u3087\u3046\u3051\u3069\u3001\u5f53\u7136\u52d5\u4f5c\u306b\u3064\u3044\u3066\u306f\u7121\u4fdd\u8a3c\u3067\u3059\u3002<br \/>\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u72b6\u614b\u5224\u5b9a\u90e8\u5206\u306a\u306e\u3067\u4ed6\u306e\u3044\u308d\u3044\u308d\u306a\u6a5f\u80fd\u306b\u5f71\u97ff\u304c\u3042\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d9\u30fc\u30b9\u306fCyanogenMod\u306egingerbread\u30d6\u30e9\u30f3\u30c1\u3092\u4f7f\u3063\u3066\u307e\u3059\u304c\u3001<br \/>\n\u3053\u306e\u3042\u305f\u308a\u306f\u305d\u308c\u307b\u3069AOSP\u7248\u306e\u30d9\u30fc\u30b9\u304b\u3089\u3044\u3058\u3063\u3066\u306a\u3044\u3068\u601d\u3046\u306e\u3067\u305f\u3076\u3093AOSP\u7248\u3067\u3082\u5927\u4e08\u592b\u3058\u3083\u306a\u3044\u304b\u3068(\u8a66\u3057\u3066\u307e\u305b\u3093)\u3002<br \/>\n\u3000<\/p>\n<h4>\u5909\u66f4\u7b87\u6240<\/h4>\n<p>\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u901a\u4fe1\u63a5\u7d9a\u72b6\u614b\u3092\u898b\u3066\u5224\u5b9a\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\nConnectivityService\u304b\u3089isAvailable\u3092\u53d6\u5f97\u3057\u306b\u884c\u3063\u305f\u6642\u306b\u3001<br \/>\nisConnected \u304c&#8221;true&#8221;\u306e\u5834\u5408\u306b\u3082 isAvailable\u3082 &#8220;true&#8221;\u3092\u8fd4\u3059\u3088\u3046\u306b\u5909\u66f4\u3002<\/p>\n<p> frameworks\/base\/core\/java\/android\/net\/NetworkInfo.java<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">@@ -225,6 +225,9 @@<br \/>\n&nbsp; &nbsp; &nbsp; * @return {@code true} if the network is available, {@code false} otherwise<br \/>\n&nbsp; &nbsp; &nbsp; *\/<br \/>\n&nbsp; &nbsp; &nbsp;public boolean isAvailable() {<br \/>\n+ &nbsp; &nbsp; &nbsp; &nbsp;if(isConnected()){<br \/>\n+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mIsAvailable = true;<br \/>\n+ &nbsp; &nbsp; &nbsp; &nbsp;}<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return mIsAvailable;<br \/>\n&nbsp; &nbsp; &nbsp;}<\/div><\/div>\n<p>\u4ee5\u4e0a\u306e\u8ffd\u52a0\u306e\u307f\u3067\u3001\u65e5\u7d4c\u96fb\u5b50\u7248\u306fMVNO\u306esim\u3067\u3082\u554f\u984c\u306a\u304f\u30c7\u30fc\u30bfDL\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305f\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u6700\u521d\u306b&#8221;\u30c7\u30fc\u30bf\u63a5\u7d9a\u3067\u304d\u306a\u3044&#8221;\u3063\u3066\u8a00\u308f\u308c\u308b\u306e\u3082\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b isAvailable \u306e\u623b\u308a\u5024\u3092\u5e38\u306b&#8221;true&#8221;\u3067\u56fa\u5b9a\u3059\u308b\u3068sim\u304c\u3055\u3055\u3063\u3066\u3044\u306a\u304f\u3066\u3082<br \/>\n\u96fb\u6ce2\u72b6\u614b\u3092\u53d6\u5f97\u3057\u306b\u884c\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u96fb\u6c60\u3092\u98df\u3046\u3082\u306e\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3046\u3061\u306eAndroid\u7aef\u672b\u306b\u306fMiFi\u306eSim\u304c\u3055\u3055\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u65e5\u7d4c\u96fb\u5b50\u7248\u306e\u3088\u3046\u306bConnectivityService\u304b\u3089isAvailable\u306e\u5024\u3092\u53d6\u5f97\u3057\u3066 \u73fe\u5728\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u306e\u5834\u5408\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.ekesete.net\/log\/?p=2865\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[],"class_list":["post-2865","post","type-post","status-publish","format-standard","hentry","category-android","category-7"],"_links":{"self":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/2865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2865"}],"version-history":[{"count":22,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/2865\/revisions"}],"predecessor-version":[{"id":3206,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/2865\/revisions\/3206"}],"wp:attachment":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}