{"id":283064,"date":"2016-12-26T17:20:08","date_gmt":"2016-12-26T14:20:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=283064"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=283064","title":{"rendered":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u0443\u0440\u0441\u0430 bitcoin"},"content":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438!<\/p>\n<p>  \u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f: \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u0445 \u043f\u043e\u0440 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u044e \u0440\u043e\u0441\u0442 \u043a\u0443\u0440\u0441\u0430 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u044b bitcoin(BTC). \u0420\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043e\u043a \u0437\u0430\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u043b \u043d\u0430 \u0441\u0430\u0439\u0442 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u0438\u0440\u0436\u0438, \u043d\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0438\u043c\u0435\u0442\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0438\u0434\u0436\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<p>  \u041d\u0430 \u043c\u0430\u0440\u043a\u0435\u0442\u0430\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043a\u0443\u0447\u0430 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043a\u0443\u0440\u0441\u044b \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442. \u041d\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0432\u043e\u0435:)<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043a\u0440\u0430\u0442\u043a\u043e \u043e\u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439 \u043e\u043f\u044b\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0434\u043b\u044f \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Android.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u0438 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 Java \u0438 Android-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432 IDE Android Studio. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0412\u0430\u043c \u0441\u044e\u0434\u0430:) <a href=\"https:\/\/developer.android.com\/develop\/index.html\">Android developers<\/a>.<\/p>\n<p>  \u041c\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0446\u0435\u043d\u0443 \u0431\u0438\u0442\u043a\u043e\u0438\u043d\u0430 \u0432 \u0434\u043e\u043b\u043b\u0430\u0440\u0430\u0445 \u0438 \u0432\u0440\u0435\u043c\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u0446\u0435\u043d\u0430. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0431\u0438\u0440\u0436\u0438 <a href=\"https:\/\/btc-e.nz\/\"> BTC-e<\/a>, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044d\u0442\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0430 \u043e\u0442\u0434\u0430\u0435\u0442 \u043a\u0443\u0440\u0441 \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c JSON-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 get-\u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e url <a href=\"https:\/\/btc-e.nz\/api\/3\/ticker\/btc_usd\">btc-e.nz\/api\/3\/ticker\/btc_usd<\/a>.<br \/>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442\u0432\u0435\u0442\u0430 \u0431\u0438\u0440\u0436\u0438:  <\/p>\n<pre><code>{&quot;btc_usd&quot;:{&quot;high&quot;:880,&quot;low&quot;:836,&quot;avg&quot;:858,&quot;vol&quot;:3774491.17766,&quot;vol_cur&quot;:4368.01172,&quot;last&quot;:871.999,&quot;buy&quot;:872,&quot;sell&quot;:870.701,&quot;updated&quot;:1482754417}}<\/code><\/pre>\n<p>  \u0418\u0442\u0430\u043a, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432 IDE \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u00abStart a new Android Studio project\u00bb, \u0437\u0430\u0442\u0435\u043c \u0432\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0446\u0435\u043b\u0435\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0432\u0435\u0440\u0441\u0438\u044e API, \u0434\u0430\u043b\u0435\u0435 \u043d\u0443\u0436\u0435\u043d \u043f\u0443\u043d\u043a\u0442 \u00abAdd no activity\u00bb.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/276\/c33\/1b0\/276c331b043a4aeb8a3f0c06a4cf4d84.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2e9\/7f9\/950\/2e97f9950f004bd7b6324424f3c4d3b8.png\" alt=\"image\"\/><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/0cc\/9c3\/eca\/0cc9c3ecac7343878088af7328538fec.png\" alt=\"image\"\/>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f IDE workspace, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u043d\u0430 \u043f\u0430\u043f\u043a\u0435 app \u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0443\u043d\u043a\u0442 New-&gt;Widget-&gt;App Widget.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ed2\/a34\/2ff\/ed2a342ffa0b4b0aa8fe6ddd2f886dd3.png\" alt=\"image\"\/>  <\/div>\n<\/div>\n<p>  \u0411\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u0442\u0440\u0438. <br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u2014 xml-\u0444\u0430\u0439\u043b (res-&gt;xml-&gt;btcwidget_info.xml) \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u0430:  <\/p>\n<pre><code class=\"xml\">&lt;source lang=&quot;xml&quot;&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;appwidget-provider xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;     android:initialKeyguardLayout=&quot;@layout\/btcwidget&quot;     android:initialLayout=&quot;@layout\/btcwidget&quot;     android:minHeight=&quot;40dp&quot;     android:minWidth=&quot;110dp&quot;     android:previewImage=&quot;@drawable\/example_appwidget_preview&quot;     android:resizeMode=&quot;horizontal|vertical&quot;     android:updatePeriodMillis=&quot;180000&quot;     android:widgetCategory=&quot;home_screen&quot;&gt;&lt;\/appwidget-provider&gt;<\/code><\/pre>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 initialLayout \u0437\u0430\u0434\u0430\u0435\u0442 \u0438\u043c\u044f xml-\u0444\u0430\u0439\u043b\u0430 \u0441 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u043e\u0439 \u0432\u0438\u0436\u0434\u0435\u0442\u0430. minHeight \u0438 min-Width \u2014 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u0432\u0438\u0434\u0436\u0435\u0442\u0430, updatePeriodMillis \u2014 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u043c\u0441, \u043d\u043e \u043d\u0435 \u0447\u0430\u0449\u0435 \u0440\u0430\u0437\u0430 \u0432 \u043f\u043e\u043b\u0447\u0430\u0441\u0430 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 10 \u043c\u0441 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 30 \u043c\u0438\u043d).<\/p>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0439 xml-\u0444\u0430\u0439\u043b (res-&gt;layout-&gt;btcwidget.xml) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u0430 (\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432).<br \/>  \u0412 \u043d\u0435\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 TextView \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 RelativeLayout (<a href=\"https:\/\/developer.android.com\/guide\/topics\/ui\/declaring-layout.html?hl=ru\">Layouts<\/a>):  <\/p>\n<pre><code class=\"xml\">&lt;RelativeLayout xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;     android:layout_width=&quot;match_parent&quot;     android:layout_height=&quot;match_parent&quot;     android:background=&quot;#09C&quot;     android:padding=&quot;@dimen\/widget_margin&quot;&gt;     &lt;TextView         android:id=&quot;@+id\/appwidget_text&quot;         android:layout_width=&quot;wrap_content&quot;         android:layout_height=&quot;wrap_content&quot;         android:layout_centerHorizontal=&quot;true&quot;         android:layout_centerVertical=&quot;true&quot;         android:layout_margin=&quot;8dp&quot;         android:background=&quot;#09C&quot;         android:contentDescription=&quot;@string\/appwidget_text&quot;         android:text=&quot;@string\/appwidget_text&quot;         android:textColor=&quot;#ffffff&quot;         android:textSize=&quot;20sp&quot;         android:textStyle=&quot;bold|italic&quot;         \/&gt; &lt;\/RelativeLayout&gt;<\/code><\/pre>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u2014 \u0442\u0440\u0435\u0442\u0438\u0439 \u0444\u0430\u0439\u043b \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 java. \u0412 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0435 \u043d\u0435\u0441\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u0437\u0430 \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0428\u0430\u0431\u043b\u043e\u043d \u043a\u043e\u0434\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">\/**  * Implementation of App Widget functionality.  *\/ public class BTCWidget extends AppWidgetProvider {        static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,                                 int appWidgetId) {          CharSequence widgetText = context.getString(R.string.appwidget_text);         \/\/ Construct the RemoteViews object         RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.btcwidget);         views.setTextViewText(R.id.appwidget_text, widgetText);          \/\/ Instruct the widget manager to update the widget         appWidgetManager.updateAppWidget(appWidgetId, views);     }      @Override     public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {         \/\/ There may be multiple widgets active, so update all of them         for (int appWidgetId : appWidgetIds) {             updateAppWidget(context, appWidgetManager, appWidgetId);         }     }      @Override     public void onEnabled(Context context) {         \/\/ Enter relevant functionality for when the first widget is created     }      @Override     public void onDisabled(Context context) {         \/\/ Enter relevant functionality for when the last widget is disabled     } }<\/code><\/pre>\n<\/p><\/div>\n<\/div>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u041e\u0421 Android \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0438 \u0438\u0445 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u043c \u0432\u044b\u0448\u0435 \u043a\u043e\u0434\u043e\u043c. \u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0442\u0430\u0442\u044c\u0435\u0439 <a href=\"https:\/\/developer.android.com\/guide\/topics\/appwidgets\/index.html\">Android Widget<\/a>. \u041d\u0438\u0436\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a\u043e\u0434\u0430 \u044f \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043b\u0438\u0448\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b.<br \/>  \u0421\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e: \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0438\u0434\u0436\u0435\u0442\u0443 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f (\u043c\u0435\u0442\u043e\u0434\u043e\u043c updateAppWidget) \u043d\u0435 \u0447\u0430\u0449\u0435 \u0447\u0435\u043c \u0440\u0430\u0437 \u0432 30 \u043c\u0438\u043d\u0443\u0442 \u043f\u043e \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \u041d\u043e \u043c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0438\u0434\u0435\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u044f \u043d\u0430\u0448\u0435\u043b \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0431\u043e\u0439\u0442\u0438 \u044d\u0442\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0436\u0435\u0442 \u0431\u044b\u043b \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d \u043a \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 \u043d\u0435\u0433\u043e. \u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u0432\u0438\u0434\u0436\u0435\u0442 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u043d\u0442 (Intent), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u0430\u043c\u0438\u043c \u0436\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u043c \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0437\u043d\u0430\u0435\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0449\u0435 \u2014 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0441\u043e\u0432\u0435\u0442\u0430\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445:)<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0441  \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\"> \/**  * Implementation of App Widget functionality.  *\/ public class BTCwidget extends AppWidgetProvider {      private static final String SYNC_CLICKED    = &quot;btcwidget_update_action&quot;;     private static final String WAITING_MESSAGE = &quot;Wait for BTC price&quot;;     public static final int httpsDelayMs = 300;      \/\/\u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0440\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442     static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,                                 int appWidgetId)  {          \/\/\u041e\u0431\u044a\u0435\u043a\u0442 RemoteViews \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u043c \u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c:         RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.btcwidget);         \/\/\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 - \u043a TextView         views.setTextViewText(R.id.appwidget_text, WAITING_MESSAGE);         appWidgetManager.updateAppWidget(appWidgetId, views);          String output;         \/\/\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0441\u0430\u0439\u0442\u0430 \u0431\u0438\u0440\u0436\u0438         \/\/\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0435\u043b\u044c\u0437\u044f - \u0432\u044b\u0431\u0440\u043e\u0441\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435         HTTPRequestThread thread = new HTTPRequestThread();         thread.start();         try {             while (true) {                 Thread.sleep(300);                 if(!thread.isAlive()) {                     output = thread.getInfoString();                     break;                 }             }          } catch (Exception e) {             output = e.toString();         }        \/\/\u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432 \u0432\u0438\u0434\u0436\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442         views.setTextViewText(R.id.appwidget_text, output);          \/\/ Instruct the widget manager to update the widget         appWidgetManager.updateAppWidget(appWidgetId, views);     }      @Override     public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {          RemoteViews remoteViews;         ComponentName watchWidget;          remoteViews = new RemoteViews(context.getPackageName(), R.layout.btcwidget);         watchWidget = new ComponentName(context, BTCwidget.class);          \/\/\u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u0432\u0438\u0434\u0436\u0435\u0442 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u043d\u0442, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0438\u0436\u0435         remoteViews.setOnClickPendingIntent(R.id.appwidget_text,   getPendingSelfIntent(context, SYNC_CLICKED));         appWidgetManager.updateAppWidget(watchWidget, remoteViews);          \/\/\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0430          for (int appWidgetId : appWidgetIds) {             updateAppWidget(context, appWidgetManager, appWidgetId);         }      }     \/\/\u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043b\u043e\u0432\u0438\u0442 \u0438\u043d\u0442\u0435\u043d\u0442\u044b, \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u0432\u0438\u0434\u0436\u0435\u0442 \u0438   \/\/\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u0430     @Override     public void onReceive(Context context, Intent intent) {          super.onReceive(context, intent);          if (SYNC_CLICKED.equals(intent.getAction())) {              AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);              RemoteViews remoteViews;             ComponentName watchWidget;              remoteViews = new RemoteViews(context.getPackageName(), R.layout.btcwidget);             watchWidget = new ComponentName(context, BTCwidget.class);              remoteViews.setTextViewText(R.id.appwidget_text, WAITING_MESSAGE);              \/\/updating widget             appWidgetManager.updateAppWidget(watchWidget, remoteViews);              String output;             HTTPRequestThread thread = new HTTPRequestThread();             thread.start();             try {                 while (true) {                     Thread.sleep(httpsDelayMs);                     if(!thread.isAlive()) {                         output = thread.getInfoString();                         break;                     }                 }              } catch (Exception e) {                 output = e.toString();             }              remoteViews.setTextViewText(R.id.appwidget_text, output);              \/\/widget manager to update the widget             appWidgetManager.updateAppWidget(watchWidget, remoteViews);          }     }         \/\/\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u043d\u0442\u0430     protected PendingIntent getPendingSelfIntent(Context context, String action) {         Intent intent = new Intent(context, getClass());         intent.setAction(action);         return PendingIntent.getBroadcast(context, 0, intent, 0);     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 HTTPRequestThread.java:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package com.hakey.btcwidget;  import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.Calendar;  class HTTPRequestThread extends Thread{     private static final String urlString = &quot;https:\/\/btc-e.nz\/api\/3\/ticker\/btc_usd&quot;;      String getInfoString() {         return output;     }      private String output = &quot;&quot;;      private void requestPrice() {          try {             URL url = new URL(urlString);             HttpURLConnection con = (HttpURLConnection) url.openConnection();             con.setRequestMethod(&quot;GET&quot;);             BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));             String inputLine;             StringBuilder response = new StringBuilder();              while ((inputLine = in.readLine()) != null) {                 response.append(inputLine);             }             in.close();              output = &quot;Price: &quot; + JSONParser.getPrice(response.toString())                     + &quot;\\n&quot; + getTimeStamp();          } catch (Exception e) {             output = e.toString();         }     }      @Override     public void run() {         requestPrice();     }      private String getTimeStamp() {         Calendar calendar = Calendar.getInstance();         if(calendar.get(Calendar.MINUTE)&gt;9) {              return &quot;Time: &quot; + calendar.get(Calendar.HOUR_OF_DAY)                     + &quot;:&quot; + calendar.get(Calendar.MINUTE);         } else {             return &quot;Time: &quot; + calendar.get(Calendar.HOUR_OF_DAY)                     + &quot;:0&quot; + calendar.get(Calendar.MINUTE);         }      } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u0430\u0440\u0441\u0435\u0440 \u043e\u0442\u0432\u0435\u0442\u0430 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u2014 JSONParser.java:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\"> package com.hakey.btcwidget;  import org.json.JSONException; import org.json.JSONObject;  class JSONParser {      static String getPrice(String s) throws JSONException {         String price;         JSONObject obj = new JSONObject(s);         JSONObject pairObj = obj.getJSONObject(&quot;btc_usd&quot;);         price = pairObj.getString(&quot;last&quot;);          return price;     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u0432\u0438\u0434\u0436\u0435\u0442:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/4b8\/9ea\/8d6\/4b89ea8d6c8c4b3d996bb52c1a643006.png\" alt=\"image\"\/>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0437\u0434\u0435\u0441\u044c: <a href=\"https:\/\/github.com\/hakeydotom\/BTCPriceWidget\">github.com\/hakeydotom\/BTCPriceWidget<\/a><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/318482\/\"> https:\/\/habrahabr.ru\/post\/318482\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0445\u0430\u0431\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438!<\/p>\n<p>  \u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f: \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0438\u0445 \u043f\u043e\u0440 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u044e \u0440\u043e\u0441\u0442 \u043a\u0443\u0440\u0441\u0430 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u044b bitcoin(BTC). \u0420\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043a\u043e\u0442\u0438\u0440\u043e\u0432\u043e\u043a \u0437\u0430\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u043b \u043d\u0430 \u0441\u0430\u0439\u0442 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0431\u0438\u0440\u0436\u0438, \u043d\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0438\u043c\u0435\u0442\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0438\u0434\u0436\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<p>  \u041d\u0430 \u043c\u0430\u0440\u043a\u0435\u0442\u0430\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043a\u0443\u0447\u0430 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043a\u0443\u0440\u0441\u044b \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442. \u041d\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0432\u043e\u0435:)<br \/>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043a\u0440\u0430\u0442\u043a\u043e \u043e\u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439 \u043e\u043f\u044b\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u0434\u043b\u044f \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u041e\u0421 Android.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-283064","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283064"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/283064\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}