{"id":229637,"date":"2014-07-13T13:33:03","date_gmt":"2014-07-13T09:33:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=229637"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=229637","title":{"rendered":"<span class=\"post_title\">\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f Pebble<\/span>"},"content":{"rendered":"<div class=\"content html_format\">     \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0445\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u0438!<\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0441\u0442\u0430\u043b \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b\u043c \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c \u0443\u043c\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 Pebble. \u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u043c\u043e\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u0432\u0441\u0435 \u0441\u0442\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u043b \u044f \u0438\u0445 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0434\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0441\u043e\u0444\u0442\u043e\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u043c \u0438\u0437\u0440\u044f\u0434\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c\/\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0436\u0438\u0437\u043d\u044c. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 \u0431\u044b\u043b\u0430 \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u0430\u043c\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0434\u0436\u0435\u0442\u0430.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u0438\u0433\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043e\u0431\u043b\u0430\u0447\u043d\u0443\u044e IDE, \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0441\u0430\u043c\u0438 \u043f\u043e \u0441\u0435\u0431\u0435 \u0447\u0430\u0441\u044b \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u044b \u043d\u0435 \u043f\u0440\u0438\u043d\u043e\u0441\u044f\u0442 \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0432\u044b\u0433\u043e\u0434\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0448\u044c \u043b\u0438\u0448\u044c \u043f\u043e\u0441\u043b\u0435 \u0438\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c, \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c yet-another-one \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440. \u0411\u0435\u0433\u043b\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u043e Google Play, \u043f\u043b\u044e\u0441 \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043c\u0435\u043d\u044f \u043a \u0438\u0434\u0435\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0443\u0440\u043e\u0432\u043d\u044f \u0437\u0430\u0440\u044f\u0434\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435. \u041d\u0435 \u0437\u043d\u0430\u044e \u0443 \u043a\u043e\u0433\u043e \u043a\u0430\u043a, \u0430 \u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0431\u044b\u0432\u0430\u044e \u0437\u0430\u0440\u044f\u0434\u0438\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0432\u043e\u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0438\u043d\u043a\u043e\u0432 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0432\u043e\u0434\u0443, \u0431\u0443\u0434\u0435\u0442 \u043a\u0441\u0442\u0430\u0442\u0438.<\/p>\n<p>  <b>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f:<\/b><br \/>  1) Service, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0444\u043e\u043d\u0435 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0443\u0440\u043e\u0432\u043d\u044f \u0437\u0430\u0440\u044f\u0434\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438.<br \/>  2) \u041f\u0440\u043e\u0441\u0442\u043e\u0439 UI, \u0446\u0435\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0412\u041a\u041b\/\u0412\u042b\u041a\u041b \u0441\u043b\u0443\u0436\u0431\u044b.<br \/>  3) \u041d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0439 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0447\u0430\u0441\u044b \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u0430\u0440\u044f\u0434 \u0443\u0436 \u043d\u0438\u0437\u043a\u043e\u0432\u0430\u0442.<\/p>\n<p>  <b>\u0410 \u0432\u043e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:<\/b><br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0447\u0442\u043e Pebble API \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u043e-\u043d\u0430\u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d java \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 [3].<\/p>\n<p>  1) \u0414\u0430\u0431\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0434\u043e\u0435\u0434\u043b\u0438\u0432\u044b\u043c \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u0445:<i> \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0442\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0443\u0440\u043e\u0432\u043d\u044f \u0437\u0430\u0440\u044f\u0434\u0430 25% \u043a\u0430\u0436\u0434\u044b\u0435 5% (\u0442\u043e\u0435\u0441\u0442\u044c 25%, 20%\u2026 \u0438 \u0442\u0430\u043a \u0434\u043e 5%)<\/i>. \u0427\u0442\u043e \u0431\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 (\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043e \u0441\u043c\u0435\u043d\u0435 \u0443\u0440\u043e\u0432\u043d\u044f \u0437\u0430\u0440\u044f\u0434\u0430) \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d BroadcastReceiver.<br \/>  \u041c\u043e\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:   <\/p>\n<pre><code class=\"java\">    private BroadcastReceiver batteryInfoReceiver = new BroadcastReceiver() {         @Override         public void onReceive(Context c, Intent i) {             \/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u0430\u0440\u044f\u0434\u0430             int currentLevel = i.getIntExtra(&quot;level&quot;, 0);             \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0431\u043b\u0430\u0433\u043e\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435 \u0438 \u0448\u043b\u0435\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435             if((currentLevel &lt;= 25) && (currentLevel % 5 == 0) && isPebbleConnected()) {                 Intent message = pebbleKit.getPebbleNotificationIntent(                     getString(R.string.msgWarningLabel),                     getString(R.string.msgWarningText) + currentLevel + &quot;%&quot;                 );                 sendBroadcast(message);             }         }     }; <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 receiver \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"java\">    registerReceiver(batteryInfoReceiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); <\/code><\/pre>\n<p>  2) \u0410 \u0432\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u0447\u0430\u0441\u044b:  <\/p>\n<pre><code class=\"java\">    public Intent getPebbleNotificationIntent(final String title, final String body) {         final Intent notificationIntent = new Intent(&quot;com.getpebble.action.SEND_NOTIFICATION&quot;);          Map&lt;String, String&gt; data = new HashMap&lt;String, String&gt;() {{             put(&quot;title&quot;, title);             put(&quot;body&quot;, body);         }};          final JSONObject notificationPack = new JSONObject(data);         final String notificationData = new JSONArray().put(notificationPack).toString();          notificationIntent.putExtra(&quot;messageType&quot;, &quot;PEBBLE_ALERT&quot;);         notificationIntent.putExtra(&quot;sender&quot;, &quot;BatteryMonitor&quot;);         notificationIntent.putExtra(&quot;notificationData&quot;, notificationData);          return notificationIntent;     } <\/code><\/pre>\n<p>  3) \u0422\u0430\u043a \u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0438\u0437 \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 status bar \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 \u0432\u0438\u0434\u043d\u043e \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 (\u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u043a\u043e\u0434 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443), \u0430 \u0442\u0430\u043a \u0436\u0435 \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u043e\u0432, \u0442\u0443\u0442 \u0432\u0441\u0435 \u043e\u043f\u044f\u0442\u044c \u0442\u0430\u043a\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c BroadcastReceiver:  <\/p>\n<pre><code class=\"java\">        PebbleKit.registerPebbleConnectedReceiver(ui.getApplicationContext(), new BroadcastReceiver() {             @Override             public void onReceive(Context context, Intent intent) {                 ui.pebbleConnected();             }         });          PebbleKit.registerPebbleDisconnectedReceiver(ui.getApplicationContext(), new BroadcastReceiver() {             @Override             public void onReceive(Context context, Intent intent) {                 ui.pebbleDisconnected();             }         }); <\/code><\/pre>\n<p>  <b>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/b><br \/>  \u0411\u0443\u0434\u0443 \u043a\u0440\u0430\u0442\u043e\u043a, \u0438 \u0431\u0443\u0434\u0443 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u043e\u0432\u0438\u0446\u0435 \u2014 \u043b\u0443\u0447\u0448\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0443\u0432\u0438\u0434\u0435\u0442\u044c\u2026  <\/p>\n<table>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/293\/85a\/b10\/29385ab10f3840bc80363ff46b20ea78.png\" width=\"250\" \/><\/div>\n<p>  <\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/941\/464\/b4d\/941464b4d483419c8558bf7a71fb9e6b.png\" width=\"250\" \/><\/div>\n<p>  <\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/7b5\/b15\/6c3\/7b5b156c30c64ab39e3a488b84d1901c.png\" width=\"250\" \/><\/div>\n<p>  <\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/b62\/4be\/835\/b624be835a0b478097106203cb9a609b.png\" width=\"250\" \/><\/div>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  <b>\u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438\u0442\u043e\u0433\u043e\u0432:<\/b><br \/>  1) \u041f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 Java \u043a\u043e\u0434\u0438\u043d\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 \u0440\u0430\u0437\u043c\u044f\u0442\u044c \u043c\u043e\u0437\u0433\u0438 \u0438 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>  2) Photoshop, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043d\u0438 \u0441 \u0434\u0438\u0437\u0430\u0439\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u2014 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u043c \u043a\u0440\u0435\u0430\u0442\u0438\u0432, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043c\u0435\u043b\u043a\u0443\u044e \u043c\u043e\u0442\u043e\u0440\u0438\u043a\u0443.<br \/>  3) \u0413\u043e\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 Google Play \u2014 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u044b\u0435 \u044d\u043c\u043e\u0446\u0438\u0438 \u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439 (\u043f\u043e\u043a\u0430 \u043a\u0440\u0438\u0442\u0438\u043a\u0430 \u043d\u0435 \u043f\u043e\u0441\u044b\u043f\u0430\u043b\u0430\u0441\u044c), \u0431\u0435\u0441\u0446\u0435\u043d\u043d\u043e!<\/p>\n<p>  \u0412\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0432\u0441\u0435. \u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0437\u0430\u0432\u0435\u0440\u0448\u0443 \u0438 \u043f\u043e\u0439\u0434\u0443 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435_\u21162. \u0422\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0442\u0437\u044b\u0432\u0430\u043c\/\u043a\u0440\u0438\u0442\u0438\u043a\u0435\/\u0441\u043e\u0432\u0435\u0442\u0430\u043c.<br \/>  \u041a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u0438\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0441\u0430\u043c\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438\/\u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435.<\/p>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e \u0437\u0430 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435.<\/p>\n<p>  <b>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<\/b><br \/>  1) <a href=\"https:\/\/github.com\/ice-pro\/Phone-Battery-Status-in-Pebble\">github.com\/ice-pro\/Phone-Battery-Status-in-Pebble<\/a> \u2014 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u043a\u043e\u0434\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<br \/>  2) <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.x_lab.ice.PhoneBatteryMonitorForPebble\">play.google.com\/store\/apps\/details?id=com.x_lab.ice.PhoneBatteryMonitorForPebble<\/a> \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 Google Play<br \/>  3) <a href=\"https:\/\/cloudpebble.net\/ide\/\">cloudpebble.net\/ide\/<\/a> \u2014 \u043e\u0431\u043b\u0430\u0447\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<br \/>  4) <a href=\"https:\/\/developer.getpebble.com\/2\/getting-started\/linux\/\">developer.getpebble.com\/2\/getting-started\/linux\/<\/a> \u2014 Pebble SDK<br \/>  5) <a href=\"https:\/\/github.com\/pebble\/pebble-sdk-examples\">github.com\/pebble\/pebble-sdk-examples<\/a> \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Pebble SDK<br \/>  6) <a href=\"http:\/\/developer.android.com\/guide\/topics\/ui\/notifiers\/notifications.html\">developer.android.com\/guide\/topics\/ui\/notifiers\/notifications.html<\/a> \u2014 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439<br \/>  7) <a href=\"http:\/\/developer.android.com\/training\/monitoring-device-state\/battery-monitoring.html\">developer.android.com\/training\/monitoring-device-state\/battery-monitoring.html<\/a> \u2014 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u0430\u0440\u044f\u0434\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438<br \/>  8) <a href=\"http:\/\/developer.android.com\/reference\/android\/app\/Service.html\">developer.android.com\/reference\/android\/app\/Service.html<\/a> \u2014 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0432 Android<br \/>  9) <a href=\"http:\/\/www.tutorialspoint.com\/android\/android_broadcast_receivers.htm\">www.tutorialspoint.com\/android\/android_broadcast_receivers.htm<\/a> \u2014 BroadcastReceiver      \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\/229637\/\"> http:\/\/habrahabr.ru\/post\/229637\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">     \t\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0445\u0430\u0431\u0440\u0430\u0436\u0438\u0442\u0435\u043b\u0438!<\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0441\u0442\u0430\u043b \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b\u043c \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c \u0443\u043c\u043d\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 Pebble. \u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u043c\u043e\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u0432\u0441\u0435 \u0441\u0442\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u043f\u043e\u043a\u0443\u043f\u0430\u043b \u044f \u0438\u0445 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0434\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0441\u043e\u0444\u0442\u043e\u043c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u043c \u0438\u0437\u0440\u044f\u0434\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c\/\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0436\u0438\u0437\u043d\u044c. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 \u0431\u044b\u043b\u0430 \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u0430\u043c\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0434\u0436\u0435\u0442\u0430.  <\/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-229637","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/229637","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=229637"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/229637\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}