{"id":207716,"date":"2013-12-28T08:02:02","date_gmt":"2013-12-28T04:02:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=207716"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=207716","title":{"rendered":"<span class=\"post_title\">\u0427\u0430\u043a \u041d\u043e\u0440\u0440\u0438\u0441 \u0438 Google Glass \u2014 \u0447\u0442\u043e \u043e\u0431\u0449\u0435\u0433\u043e, \u0430 \u0432\u043e\u0442\u2026<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u043d\u0435 (\u043d\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e \u043f\u043e\u043f\u0435\u0440\u043b\u043e) \u0432\u044b\u043f\u0430\u043b \u0448\u0430\u043d\u0441 \u043a\u0443\u043f\u0438\u0442\u044c Google Glass \u043f\u043e Explorers Program. \u0421\u0442\u043e\u0438\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0443\u0442\u0440\u043e \u043f\u043e\u0447\u0442\u0430\u043b\u044c\u043e\u043d \u0440\u0430\u0437\u0431\u0443\u0434\u0438\u043b \u043c\u0435\u043d\u044f \u0441\u0442\u0443\u043a\u043e\u043c \u0432 \u0434\u0435\u0432\u0435\u0440\u044c \u2014 \u0432\u0430\u043c \u043f\u043e\u0441\u044b\u043b\u043a\u0430. \u041d\u0435 \u0443\u043c\u044b\u0432\u0430\u044f\u0441\u044c \u0438 \u043d\u0435 \u0447\u0438\u0441\u0442\u044f \u0437\u0443\u0431\u044b\u2026<\/p>\n<p>  \u041f\u043e\u0434 \u0432\u0435\u0447\u0435\u0440 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0418\u0437\u0443\u0447\u0438\u0432 \u043f\u0430\u0440\u0443-\u0442\u0440\u043e\u0439\u043a\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0432 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u2014 \u044f \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e. \u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0448\u0443\u0442\u043a\u0443 \u043f\u0440\u043e \u0427\u0430\u043a\u0430 \u041d\u043e\u0440\u0440\u0438\u0441\u0430 \u0438\u0437 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043f\u0430\u0440\u0441\u0438\u0442\u044c JSON, \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u043b\u0443\u0445.<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a \u043d\u0430\u0447\u043d\u0435\u043c.<\/p>\n<h5>\u0413\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f:<\/h5>\n<p>  \u041d\u0430\u0448\u0430 \u0448\u0443\u0442\u0438\u043b\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439. \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0432 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0435:<\/p>\n<pre><code class=\"xml\">        &lt;service                 android:name=&quot;com.chucknorris.JokeService&quot;                 android:icon=&quot;@drawable\/icon&quot;                 android:label=&quot;@string\/app_name&quot;                 android:enabled=&quot;true&quot;                 android:exported=&quot;true&quot;&gt;             &lt;intent-filter&gt;                 &lt;action android:name=&quot;com.google.android.glass.action.VOICE_TRIGGER&quot;\/&gt;             &lt;\/intent-filter&gt;             &lt;meta-data                     android:name=&quot;com.google.android.glass.VoiceTrigger&quot;                     android:resource=&quot;@xml\/voice_trigger_start&quot;\/&gt;         &lt;\/service&gt; <\/code><\/pre>\n<p>  \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0437\u0434\u0435\u0441\u044c, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0430\u043d\u0434\u0440\u043e\u0438\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f VoiceTrigger.<\/p>\n<p>  xml\/voice_trigger_start \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;trigger keyword=&quot;@string\/chuck_norris_joke&quot; \/&gt; <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0434\u0430\u0435\u0442 \u0444\u0440\u0430\u0437\u0443, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0438\u0441 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f:<\/p>\n<pre><code class=\"xml\">&lt;string name=&quot;chuck_norris_joke&quot;&gt;say Chuck Norris joke&lt;\/string&gt; <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Google \u0432\u044b\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0444\u0440\u0430\u0437\u0430\u043c \u2014 \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u0433\u043b\u0430\u0433\u043e\u043b\u0430. \u041c\u043d\u0435 \u043b\u0438\u0447\u043d\u043e \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u043d\u043e \u0441\u0430\u043f\u043e\u0436\u043d\u0438\u043a \u043d\u0435 \u0432\u043f\u0440\u0430\u0432\u0435 \u0441\u0443\u0434\u0438\u0442\u044c \u0432\u044b\u0448\u0435 \u0441\u0430\u043f\u043e\u0433\u0430. \u041f\u0440\u043e\u0441\u0442\u043e \u0443\u0436 \u0431\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0444\u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u00abshow\u00bb, \u00abget\u00bb, \u00absay\u00bb, \u00abstart\u00bb<br \/>  \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <a href=\"https:\/\/developers.google.com\/glass\/distribute\/voice-checklist\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 VoiceTrigger, \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0438\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0441\u043a\u0430\u0436\u0435\u043c <i>\u00abok glass, say Chuck Norris joke\u00bb<\/i><br \/>  \u041a \u0441\u043b\u043e\u0432\u0443, Activity \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041a\u0443\u0441\u043e\u0447\u0435\u043a \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u043e\u0432\u044b\u043c:<\/p>\n<pre><code class=\"xml\">       &lt;activity          android:name=&quot;com.google.android.glass.sample.waveform.WaveformActivity&quot; &gt;             &lt;intent-filter&gt;                 &lt;action android:name=&quot;com.google.android.glass.action.VOICE_TRIGGER&quot; \/&gt;             &lt;\/intent-filter&gt;             &lt;meta-data android:name=&quot;com.google.android.glass.VoiceTrigger&quot;                 android:resource=&quot;@xml\/voice_trigger_start&quot; \/&gt;         &lt;\/activity&gt; <\/code><\/pre>\n<h5>\u041d\u0430\u0447\u0438\u043d\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/h5>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e Card \u0438 LiveCard, \u043d\u043e \u043a\u0430\u043a-\u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437. \u041d\u0430\u0448\u0430 \u0448\u0443\u0442\u0438\u043b\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0448\u0443\u0442\u0438\u0442\u044c \u0432\u0441\u043b\u0443\u0445.<\/p>\n<p>  \u0420\u0430\u0437 \u0448\u0443\u0442\u043a\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u0442\u043e \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0435 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0432 AndroidManifest.xml:  <\/p>\n<pre><code class=\"xml\">&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;\/&gt; <\/code><\/pre>\n<p>  \u0412 UI Thread \u043b\u0430\u0437\u0438\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u0435\u0449\u0430\u0435\u0442\u0441\u044f, \u0437\u0430\u0432\u0435\u0434\u0435\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0446\u0435\u043b\u0438 AsyncTask<\/p>\n<p>  doInBackground \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<pre><code class=\"java\">        HttpClient client = new DefaultHttpClient();         HttpGet getRequest = new HttpGet();          try {             \/\/ construct a URI object             getRequest.setURI(new URI(urls[0]));         } catch (URISyntaxException e) {             Log.e(&quot;URISyntaxException&quot;, e.toString());         }          \/\/ buffer reader to read the response         BufferedReader in = null;         \/\/ the service response         HttpResponse response = null;         try {             \/\/ execute the request             response = client.execute(getRequest);         } catch (ClientProtocolException e) {             Log.e(&quot;ClientProtocolException&quot;, e.toString());         } catch (IOException e) {             Log.e(&quot;IO exception&quot;, e.toString());         }          try {             in = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));         } catch (IllegalStateException e) {             Log.e(&quot;IllegalStateException&quot;, e.toString());         } catch (IOException e) {             Log.e(&quot;IO exception&quot;, e.toString());         }         StringBuffer buff = new StringBuffer(&quot;&quot;);         String line = &quot;&quot;;         try {             while ((line = in.readLine()) != null) {                 buff.append(line);             }         } catch (IOException e) {             Log.e(&quot;IO exception&quot;, e.toString());             return e.getMessage();         }          try {             in.close();         } catch (IOException e) {             Log.e(&quot;IO exception&quot;, e.toString());         } <\/code><\/pre>\n<p>  \u0437\u0430\u0442\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442 JSON:<\/p>\n<pre><code class=\"java\">        String joke = &quot;&quot;;         try {             JSONObject jObject = new JSONObject(buff.toString());             joke = jObject.getJSONObject(&quot;value&quot;).getString(&quot;joke&quot;);         } catch (JSONException e) {             Log.e(&quot;JSON exception&quot;, e.toString());         }  <\/code><\/pre>\n<h5>ok glass \u0441\u043a\u0430\u0436\u0438 \u0448\u043e\u0441\u044c<\/h5>\n<p>  AsyncTask \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 onPostExecute. \u0421\u0442\u0430\u043b\u043e \u0431\u044b\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0438 \u0448\u0443\u0442\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0430, \u0432\u044b\u0442\u0430\u0449\u0435\u043d\u0430 \u0438\u0437 JSON \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 \u2014 \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0442\u0438 \u0435\u0435 \u0432\u0441\u043b\u0443\u0445. Android \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043d\u0430\u043c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u0440\u0435\u0447\u044c \u043d\u043e \u0438 \u043f\u0440\u043e\u0438\u0437\u043d\u0435\u0441\u0442\u0438 \u0442\u0435\u043a\u0441\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e TextToSpeech.<\/p>\n<p>  TextToSpeech \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432 AsyncTask \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430.  <\/p>\n<pre><code class=\"java\">        tts = new TextToSpeech(this, new TextToSpeech.OnInitListener(){             @Override             public void onInit(int i) {                   \/\/TODO \u043f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u043d\u0430\u0434\u043e \u0431\u044b \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438             }         }); <\/code><\/pre>\n<p>  \u0432 onPostExecute \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 readOutLoud  <\/p>\n<pre><code class=\"java\">    protected void onPostExecute(String joke) {         if (exception != null) {             return;         }         readOutLoud(joke);     } <\/code><\/pre>\n<p>  \u0447\u0442\u0435\u043d\u0438\u0435 \u0448\u0443\u0442\u043a\u0438 \u0432\u0441\u043b\u0443\u0445:  <\/p>\n<pre><code class=\"java\">    private void readOutLoud(String joke) {         tts.speak(joke, TextToSpeech.QUEUE_FLUSH, null);     } <\/code><\/pre>\n<h5>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u0438 \u0437\u0430\u0433\u043b\u0430\u0434\u043a\u0430<\/h5>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0447\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 USB, \u0441\u043e\u0431\u0440\u0430\u0442\u044c apk, align, sign, deploy (IDE \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0437\u0430 \u043d\u0430\u0441). \u041d\u0438\u043a\u0430\u043a\u043e\u0439 Activity \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u0438\u0442\u0430\u043a, \u0431\u0430\u0440\u0430\u0431\u0430\u043d\u043d\u0430\u044f \u0434\u0440\u043e\u0431\u044c<br \/>   \u2014 <i>\u00abok glass, say Chuck Norris Joke\u00bb<\/i><br \/>   \u2014 <i>\u00abChuck Norris can read from an input stream.\u00bb<\/i><\/p>\n<h5>\u0412\u043c\u0435\u0441\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u044f<\/h5>\n<p>  \u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0441\u043b\u0443\u0447\u0430\u0435\u043c, \u0445\u043e\u0447\u0443 \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c <a href=\"http:\/\/www.icndb.com\/\">www.icndb.com\/<\/a>. \u042f \u0434\u0443\u043c\u0430\u044e \u043d\u0430\u0434\u043e \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0441 \u0448\u0443\u0442\u043a\u0430\u043c\u0438 \u043f\u0440\u043e \u0428\u0442\u0438\u0440\u043b\u0438\u0446\u0430. \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u2014 \u0437\u0430\u0439\u043c\u0443\u0441\u044c.<\/p>\n<h6>\u041d\u0430\u0441\u0447\u0435\u0442 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f<\/h6>\n<p>  \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0435\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0438\/\u0438\u043b\u0438 \u0433\u043e\u043b\u043e\u0441\u0430. \u041d\u0430 OS X \u043e\u043d\u0438 \u0435\u0441\u0442\u044c.<\/p>\n<h6>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u043f\u0443\u043d\u043a\u0442\u0443 \u00ab\u0430 \u0447\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u00bb<\/h6>\n<p>  \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u043e\u0439 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0448\u0443\u0442\u043a\u0438:<\/p>\n<pre><code class=\"java\">    private void publishJokeCard(String joke) {         Card card = new Card(ctx);         card.setText(joke);         card.addImage(R.drawable.chuck);          TimelineManager.from(ctx).insert(card);     } <\/code><\/pre>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430\u0445 \u2014 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437, \u043d\u0430\u0434\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f. \u041f\u043e\u043a\u0430 \u043f\u0438\u0441\u0430\u043b \u043e\u0434\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u2014 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0438\u043b \u043d\u0430 \u043e\u0447\u043a\u0438 \u2014 \u0430 \u0442\u0430\u043c \u0443\u0436\u0435 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f SDK. \u0411\u043b\u0430\u0433\u043e \u043a\u0442\u043e-\u0442\u043e \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b\u0448\u043b\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0435\u043d\u044c \u043d\u0430\u0437\u0430\u0434 (\u043d\u0430 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442). \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/developers.google.com\/glass\/tools-downloads\/playground\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<h6>\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/h6>\n<p>  \u0418\u043a\u043e\u043d\u043a\u0443 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043d\u0435 \u0442\u0440\u0443\u0434\u043d\u043e \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 \u2014 \u0431\u0435\u043b\u0430\u044f, \u043d\u0430 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u043c \u0444\u043e\u043d\u0435 \u0438 50\u044550 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439.<\/p>\n<p>  \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0434\u043b\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u2014 \u043d\u0443 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043b\u044e\u0431\u0430\u044f, \u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u2014 \u0433\u0434\u0435-\u0442\u043e \u0442\u0440\u0435\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0448\u0438\u0440\u0438\u043d\u044b \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0432\u044b\u0441\u043e\u0442\u044b \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438.<br \/>  \u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a, \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u0448\u0443\u0442\u043a\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043f\u0440\u0438\u043b\u0438\u0447\u043d\u044b. \u0427\u0442\u043e\u0431 \u043d\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043a\u043e\u043d\u0444\u0443\u0437 \u2014 \u043b\u0443\u0447\u0448\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a URL &quot;?type=nerdy&quot;.<\/p>\n<h6>\u041a\u043e\u0434<\/h6>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, <a href=\"https:\/\/github.com\/pavlonator\/gdk-chucknorris-sample\">\u043a\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c<\/a><br \/>  \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b <a href=\"https:\/\/github.com\/googleglass\/\">\u0437\u0434\u0435\u0441\u044c<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/207716\/\"> http:\/\/habrahabr.ru\/post\/207716\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u043d\u0435 (\u043d\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e \u043f\u043e\u043f\u0435\u0440\u043b\u043e) \u0432\u044b\u043f\u0430\u043b \u0448\u0430\u043d\u0441 \u043a\u0443\u043f\u0438\u0442\u044c Google Glass \u043f\u043e Explorers Program. \u0421\u0442\u043e\u0438\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0443\u0442\u0440\u043e \u043f\u043e\u0447\u0442\u0430\u043b\u044c\u043e\u043d \u0440\u0430\u0437\u0431\u0443\u0434\u0438\u043b \u043c\u0435\u043d\u044f \u0441\u0442\u0443\u043a\u043e\u043c \u0432 \u0434\u0435\u0432\u0435\u0440\u044c \u2014 \u0432\u0430\u043c \u043f\u043e\u0441\u044b\u043b\u043a\u0430. \u041d\u0435 \u0443\u043c\u044b\u0432\u0430\u044f\u0441\u044c \u0438 \u043d\u0435 \u0447\u0438\u0441\u0442\u044f \u0437\u0443\u0431\u044b\u2026<\/p>\n<p>  \u041f\u043e\u0434 \u0432\u0435\u0447\u0435\u0440 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0418\u0437\u0443\u0447\u0438\u0432 \u043f\u0430\u0440\u0443-\u0442\u0440\u043e\u0439\u043a\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0432 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u2014 \u044f \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0434\u0435\u043b\u043e. \u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0448\u0443\u0442\u043a\u0443 \u043f\u0440\u043e \u0427\u0430\u043a\u0430 \u041d\u043e\u0440\u0440\u0438\u0441\u0430 \u0438\u0437 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043f\u0430\u0440\u0441\u0438\u0442\u044c JSON, \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u043b\u0443\u0445.<\/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-207716","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/207716","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=207716"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/207716\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}