{"id":210898,"date":"2014-01-30T21:41:02","date_gmt":"2014-01-30T17:41:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=210898"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=210898","title":{"rendered":"<span class=\"post_title\">\u041f\u0438\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f Sony SmartWatch \u0438 SmartWatch 2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" align=\"right\" src=\"http:\/\/habr.habrastorage.org\/post_images\/609\/ac6\/02e\/609ac602e9eac6c5ac124154d95a1540.jpg\"\/> <b>Sony SmartWatch<\/b> \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u0435\u0432\u0430\u0439\u0441 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043e\u0431\u043e\u0448\u043b\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435. \u041d\u0443 \u0440\u0430\u0437 \u0442\u0430\u043a \u2013 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c! \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043b\u044e\u0431\u044b\u043c \u0430\u0443\u0434\u0438\u043e-\u043f\u043b\u0435\u0435\u0440\u043e\u043c.<\/p>\n<p>  \u0421\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0443\u0436\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0437\u043d\u0430\u0435\u0442, \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u0434 Android, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0442\u0435\u0445, \u043a\u0442\u043e \u0432\u0438\u0434\u0435\u043b \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u0447\u0430\u0441\u044b \u0438\u043b\u0438 \u0447\u0438\u0442\u0430\u043b \u043f\u0440\u043e \u043d\u0438\u0445 \u043e\u0431\u0437\u043e\u0440\u044b, \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b. \u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434 \u043f\u0435\u0440\u0432\u0443\u044e \u0438 \u0432\u0442\u043e\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u0438 <b>SmartWatch<\/b>.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/h2>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <b>Android SDK Manager<\/b> \u0438 \u0438\u0434\u0451\u043c \u0432 \u043c\u0435\u043d\u044e <b>Tools -&gt; Manage Add-on Sites<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/1bf\/179\/093\/1bf179093b5d7817e3ea36cb3d62cdaa.png\"\/><\/p>\n<p>  \u041d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <b>User Defined Sites<\/b> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0430\u0434\u0440\u0435\u0441 \u0441 SDK \u043f\u043e\u0434 \u0447\u0430\u0441\u044b:<br \/>  <code>http:\/\/dl-developer.sonymobile.com\/sdk_manager\/Sony-Add-on-SDK.xml<\/code><\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0434\u0430\u043d\u043d\u044b\u0439 SDK \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u044b, \u043d\u043e \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0445\u0438\u0442\u0440\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0442 Sony, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Smart Headset\u2026 \u041d\u043e \u043d\u0430\u043c \u043f\u043e\u043a\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u044b. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/cc5\/006\/6e0\/cc50066e04173bd038c4b54f5b065690.png\"\/><\/p>\n<p>  \u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0435, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438\u0445:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/3dc\/045\/abf\/3dc045abf07f6992783e19c7d3e7f274.png\"\/><\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0433\u043b\u044f\u043d\u0438\u0442\u0435 \u0432 \u043f\u0430\u043f\u043a\u0443 <b>[\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f Android SDK]\/sdk\/add-ons\/addon-sony_add-on_sdk_2_1-sony-16\/samples<\/b>. \u0422\u0430\u043c \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0447\u0430\u0441\u0438\u043a\u043e\u0432, \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0445.<\/p>\n<h2>\u042d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0447\u0430\u0441\u043e\u0432<\/h2>\n<p>  \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 SDK \u0438\u0434\u0451\u0442 \u0438 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440. \u0414\u043b\u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0439\u0434\u0451\u043c \u0432 <b>AVD Manager<\/b> \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0434\u043d\u043e \u0438\u0437 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043d\u043e\u0432\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0442 Sony, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<b> Xperia T<\/b>. \u0413\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e \u0431\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <b>Target<\/b> \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d <b>Sony Add-on SDK<\/b>.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b96\/c0f\/4f9\/b96c0f4f9689ed9d580f02fbd4d44913.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0430 \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044e, \u0442\u043e \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 <b>Accessory emulator<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/2c8\/a6e\/eb4\/2c8a6eeb4f01216dd53ce9bb0a62dbcc.png\"\/><\/p>\n<p>  \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043c \u0447\u0430\u0441\u0438\u043a\u0438 (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e, \u043a\u0430\u043a \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0448\u0435).<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/e3b\/a02\/ae2\/e3ba02ae2b9ba5d5d6e3775c95d82912.png\"\/><\/p>\n<h2>\u041f\u043b\u0430\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h2>\n<p>  \u041d\u0443 \u0430 \u0442\u0435\u043f\u0435\u0440\u044c, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c? \u041a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u044f\u043a\u0438\u0435 <i>hello word<\/i> \u0441\u043a\u0443\u0447\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0435\u0435\u0440\u043e\u043c! \u041b\u044e\u0431\u044b\u043c \u043f\u043b\u0435\u0435\u0440\u043e\u043c \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435. \u0412\u043e\u0442 \u044d\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043c\u0430\u0441\u0448\u0442\u0430\u0431 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \ud83d\ude09<\/p>\n<ul>\n<li>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0436\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u043a\u043b\u0438\u043a\u0430\u043c\u0438. \u0416\u0435\u0441\u0442 \u0441\u043f\u0440\u0430\u0432\u0430-\u043d\u0430\u043b\u0435\u0432\u043e \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u2013 \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\/\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u0440\u0435\u043a, \u0432\u0432\u0435\u0440\u0445\/\u0432\u043d\u0438\u0437 \u2013 \u0433\u0440\u043e\u043c\u0447\u0435\/\u0442\u0438\u0448\u0435. \u041a\u043b\u0438\u043a \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u2013 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043f\u0430\u0443\u0437\u0443\/\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/li>\n<li>\u041a\u0440\u043e\u043c\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0432\u0438\u0434\u0436\u0435\u0442 (\u0434\u043b\u044f \u0447\u0430\u0441\u043e\u0432), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/li>\n<li>\u0421\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0434\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2013 \u043d\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e \u0437\u0430\u043f\u0430\u0441.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0431\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 SmartWatch (\u043f\u0435\u0440\u0432\u0443\u044e \u0438 \u0432\u0442\u043e\u0440\u0443\u044e, \u043a\u0430\u043a \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u041a\u044d\u043f).<\/li>\n<\/ul>\n<h2>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0432 IntelliJ IDEA<\/h2>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <b>IntelliJ IDEA<\/b>, \u0442\u043e \u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u0439. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u2013 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 SDK \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442 Sony.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/7ae\/9be\/a8b\/7ae9bea8b5be98c20200a96eab2ba6e8.png\"\/><\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043f\u0430\u0440\u0443 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438\u0437 \u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 <b>samples<\/b>\u2013 \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 <b>SmartExtensions\/SmartExtensionAPI<\/b> \u0438 <b>SmartExtensions\/SmartExtensionUtils<\/b>. \u0412\u0442\u043e\u0440\u0443\u044e, \u0442\u0435\u043e\u0440\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0451 \u0435\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441 \u043d\u0443\u043b\u044f, \u043d\u043e \u043c\u044b, \u0430\u0434\u0435\u043f\u0442\u044b \u0442\u0451\u043c\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0441\u0438\u043b\u044b, \u0446\u0435\u043d\u0438\u043c \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e, \u0430 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0441 \u043d\u0443\u043b\u044f \u0442\u043e, \u0447\u0442\u043e \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0430\u043c \u0447\u0443\u0436\u0434\u043e. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044e \u044f \u0443\u0431\u0440\u0430\u043b \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440, \u0431\u043b\u0430\u0433\u043e \u0442\u0430\u043c \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/b><\/p>\n<div class=\"spoiler_text\">\u0418\u0434\u0451\u043c \u0432 <b>File -&gt; Project Structure<\/b>, \u0442\u0430\u043c \u2013 \u043d\u0430 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0443 <b>Modules<\/b>, \u043a\u043b\u0438\u043a\u0430\u0435\u043c \u043f\u043e \u201c\u043f\u043b\u044e\u0441\u0438\u043a\u0443\u201d \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <b>Import Module<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/7bc\/e8e\/a5c\/7bce8ea5c8b3b01c40825f69e7b6c322.png\"\/><\/p>\n<p>  \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0443 <b>SmartExtensionAPI<\/b>:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a2f\/a39\/b73\/a2fa39b73596ca279a14e923a39dede4.png\"\/><\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u041e\u041a \u0438 Next-&gt;Next-&gt;Next \u0434\u043e \u043f\u043e\u0431\u0435\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0446\u0430, \u043a\u0430\u043a \u0432 \u0441\u0442\u0430\u0440\u044b\u0435 \u0434\u043e\u0431\u0440\u044b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/dc2\/809\/32a\/dc280932ac7042a837cc061ee88f2a08.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/dc2\/ac2\/ff4\/dc2ac2ff41c37431b57c68a37647beae.png\"\/><\/p>\n<p>  \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438 <b>SmartExtensionUtils<\/b>.  <\/div>\n<\/div>\n<h2>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/h2>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430. <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">AndroidManifest.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;manifest xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;           package=&quot;com.smartwatch_habra_demo&quot;&gt;     &lt;uses-sdk android:minSdkVersion=&quot;9&quot;               android:targetSdkVersion=&quot;16&quot;\/&gt;     &lt;uses-permission android:name=&quot;com.sonyericsson.extras.liveware.aef.EXTENSION_PERMISSION&quot; \/&gt;      &lt;application android:label=&quot;\u0414\u0435\u043c\u043e-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0447\u0430\u0441\u043e\u0432 \u0434\u043b\u044f \u0445\u0430\u0431\u0440\u0430&quot; android:icon=&quot;@drawable\/icon&quot;&gt;          &lt;activity                 android:name=&quot;DemoConfigActivity&quot;                 android:label=&quot;\u042d\u043a\u0440\u0430\u043d \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438&quot; &gt;             &lt;intent-filter&gt;                 &lt;action android:name=&quot;android.intent.action.MAIN&quot; \/&gt;             &lt;\/intent-filter&gt;         &lt;\/activity&gt;          &lt;service android:name=&quot;DemoReceiverService&quot; \/&gt;          &lt;receiver                 android:name=&quot;DemoExtensionReceiver&quot;                 android:permission=&quot;com.sonyericsson.extras.liveware.aef.HOSTAPP_PERMISSION&quot; &gt;             &lt;intent-filter&gt;                  &lt;!-- Generic extension intents. --&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.liveware.aef.registration.EXTENSION_REGISTER_REQUEST&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.liveware.aef.registration.ACCESSORY_CONNECTION&quot; \/&gt;                 &lt;action android:name=&quot;android.intent.action.LOCALE_CHANGED&quot; \/&gt;                  &lt;!-- Notification intents --&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.liveware.aef.notification.VIEW_EVENT_DETAIL&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.liveware.aef.notification.REFRESH_REQUEST&quot; \/&gt;                  &lt;!-- Widget intents --&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.widget.START_REFRESH_IMAGE_REQUEST&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.widget.STOP_REFRESH_IMAGE_REQUEST&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.widget.ONTOUCH&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.liveware.extension.util.widget.scheduled.refresh&quot; \/&gt;                  &lt;!-- Control intents --&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.START&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.STOP&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.PAUSE&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.RESUME&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.ERROR&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.KEY_EVENT&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.TOUCH_EVENT&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.SWIPE_EVENT&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.OBJECT_CLICK_EVENT&quot; \/&gt;                 &lt;action android:name=&quot;com.sonyericsson.extras.aef.control.MENU_ITEM_SELECTED&quot; \/&gt;             &lt;\/intent-filter&gt;         &lt;\/receiver&gt;     &lt;\/application&gt; &lt;\/manifest&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0442\u0430\u043a\u043e\u0432\u0430: \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0442 \u0447\u0430\u0441\u043e\u0432, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435\u043a\u0438\u0435 \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f <b>activity <\/b>\u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0434\u043b\u044f \u043e\u043a\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u0435\u0441\u043b\u0438 \u0436\u0435 \u0442\u0430\u043a\u043e\u0432\u043e\u0435 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u2013 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u0435\u0451 \u0441\u043e\u0432\u0441\u0435\u043c.<\/p>\n<p>  \u041a\u043b\u0430\u0441\u0441-receiver \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoExtensionReceiver.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoExtensionReceiver extends BroadcastReceiver {      @Override     public void onReceive(final Context context, final Intent intent) {         intent.setClass(context, DemoReceiverService.class);         context.startService(intent);     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0443 \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0443:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoReceiverService.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoReceiverService extends ExtensionService {      public static final String EXTENSION_KEY = &quot;com.smartwatch_habra_demo&quot;; \/\/todo \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u043c \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443 &quot;\u043f\u0430\u043a\u0435\u0442.\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f&quot;      public DemoReceiverService() {         super(EXTENSION_KEY);     }      @Override     protected RegistrationInformation getRegistrationInformation() {         return new DemoRegistrationInformation(this);     }      @Override     protected boolean keepRunningWhenConnected() {\/\/\u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c         return false;     }      @Override     public WidgetExtension createWidgetExtension(String hostAppPackageName) { \/\/\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0432\u0438\u0434\u0436\u0435\u0442\u0430         return new DemoWidget(this,hostAppPackageName);     }      @Override     public ControlExtension createControlExtension(String hostAppPackageName) {\/\/\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b         boolean IsSmartWatch2= DeviceInfoHelper.isSmartWatch2ApiAndScreenDetected(                 this, hostAppPackageName);         if (IsSmartWatch2){             return new DemoControl2(this,hostAppPackageName);         }else{             return new DemoControl(this,hostAppPackageName);         }     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e, \u043f\u0440\u0430\u0432\u0434\u0430? \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u044f\u0441\u043d\u044f\u044e\u0442\u0441\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c. <b>ControlExtension<\/b> \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0447\u0430\u0441\u0430\u0445, <b>WidgetExtension<\/b> \u2013 \u0434\u043b\u044f \u0442\u0435\u0445 \u0436\u0435 \u0446\u0435\u043b\u0435\u0439, \u043d\u043e \u0443\u0436\u0435 \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u0430.<\/p>\n<p>  \u0410 \u0432\u043e\u0442 <b>RegistrationInformation<\/b> \u2013 \u044d\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0430\u043c\u0438 \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoRegistrationInformation.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoRegistrationInformation extends RegistrationInformation {     public static final int WIDGET_WIDTH_SMARTWATCH = 128;     public static final int WIDGET_HEIGHT_SMARTWATCH = 110;      public static final int CONTROL_WIDTH_SMARTWATCH = 128;     public static final int CONTROL_HEIGHT_SMARTWATCH = 128;     public static final int CONTROL_WIDTH_SMARTWATCH_2 = 220;     public static final int CONTROL_HEIGHT_SMARTWATCH_2 = 176;      Context mContext;      protected DemoRegistrationInformation(Context context) {         if (context == null) {             throw new IllegalArgumentException(&quot;context == null&quot;);         }         mContext = context;     }      @Override     public ContentValues getExtensionRegistrationConfiguration() {         String iconHostapp = ExtensionUtils.getUriString(mContext, R.drawable.icon);          ContentValues values = new ContentValues();         values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,DemoConfigActivity.class.getName()); \/\/\u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043c\u0435\u043d\u044e &quot;\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f&quot;. \u0415\u0441\u043b\u0438 \u043e\u043d\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e - \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441\u043e\u0432\u0441\u0435\u043c.         values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT,&quot;\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u0435\u043c\u043e-\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f&quot;);\/\/\u0430 \u044d\u0442\u043e \u0442\u0435\u043a\u0441\u0442, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0449\u0438\u0439\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0443\u043d\u043a\u0442\u0430 \u043c\u0435\u043d\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0430\u043c\u0438. \u0415\u0441\u043b\u0438 \u043e\u043d\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e - \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0441\u043e\u0432\u0441\u0435\u043c.          values.put(Registration.ExtensionColumns.NAME, &quot;\u0425\u0430\u0431\u0440\u0430-\u0434\u0435\u043c\u043e-\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435&quot;);\/\/\u0438\u043c\u044f, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u0435 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0430\u043c\u0438         values.put(Registration.ExtensionColumns.EXTENSION_KEY,DemoReceiverService.EXTENSION_KEY); \/\/\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f          values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp); \/\/\u0438\u043a\u043e\u043d\u043a\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435         values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconHostapp); \/\/\u0438\u043a\u043e\u043d\u043a\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u0441\u0430\u043c\u0438\u0445 \u0447\u0430\u0441\u0430\u0445, \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 48x48         values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,getRequiredNotificationApiVersion());\/\/\u043d\u0443\u0436\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439         values.put(Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName());          return values;     }      @Override     public int getRequiredNotificationApiVersion() { \/\/\u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f\u043c\u0438         return 0;     }      @Override     public int getRequiredSensorApiVersion() { \/\/\u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 \u0438\u043d\u0444\u0430 \u0441 \u0441\u0435\u043d\u0441\u043e\u0440\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u043e\u043c\u0435\u0442\u0440\u0430         return 0;     }      \/\/---------------------------------------------     \/\/\u0432\u0441\u0451 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u0430     \/\/---------------------------------------------      @Override     public boolean isWidgetSizeSupported(final int width, final int height) {         return (width == WIDGET_WIDTH_SMARTWATCH && height == WIDGET_HEIGHT_SMARTWATCH);     }      @Override     public int getRequiredWidgetApiVersion() { \/\/\u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0435\u0440\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432         return 1;     }      \/\/---------------------------------------------     \/\/\u0432\u0441\u0451 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430     \/\/---------------------------------------------      @Override     public int getRequiredControlApiVersion() { \/\/\u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0435\u0440\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432         return 1;     }      @Override     public int getTargetControlApiVersion() { \/\/\u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0447\u0430\u0441\u043e\u0432         return 2;     }      @Override     public boolean isDisplaySizeSupported(int width, int height) {         return (width == CONTROL_WIDTH_SMARTWATCH_2 && height == CONTROL_HEIGHT_SMARTWATCH_2)                 || (width == CONTROL_WIDTH_SMARTWATCH && height == CONTROL_HEIGHT_SMARTWATCH);     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u043e\u0435 \u043d\u0430\u043c\u0438 API \u043e\u0442 Sony \u2013 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043b\u044f \u0446\u0435\u043b\u043e\u0439 \u043f\u0430\u0447\u043a\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043e\u0442 Sony, \u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043d\u0430\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0441\u0435\u0445 \u044d\u0442\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0440\u0430\u0437\u043e\u043c. \u0418\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043d\u0438\u0445.<\/p>\n<p>  \u0420\u0430\u0437 \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u043b\u043e, \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0438 \u0432\u0435\u0440\u0441\u0438\u0438 API \u0434\u043b\u044f \u0441\u0435\u043d\u0441\u043e\u0440\u043e\u0432, \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 \u0438 \u0442.\u043f. \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c. \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c:  <\/p>\n<ul>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u043d\u0441\u043e\u0440\u043e\u0432 (\u0430\u043a\u0441\u0435\u043b\u0435\u0440\u043e\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0442.\u043f.) \u2013 getRequiredSensorApiVersion. \u041d\u0430\u043c \u043e\u043d\u043e \u043d\u0435 \u043d\u0430\u0434\u043e \u0441\u043e\u0432\u0441\u0435\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f API = 0.<\/li>\n<li>\u041d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 (Notification) \u2014 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f; \u043d\u0430\u043c \u043e\u043d\u0438 \u0442\u043e\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b. \u0422\u0430\u043a \u0447\u0442\u043e \u0432 <b>getRequiredNotificationApiVersion<\/b> \u0441\u043d\u043e\u0432\u0430 0.<\/li>\n<li>\u201c\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u201d \u2013 \u044d\u0442\u043e \u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u201c\u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u0447\u0430\u0441\u0430\u0445\u201d. \u0414\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u043f\u0435\u0440\u0432\u044b\u0445 \u0438 \u0432\u0442\u043e\u0440\u044b\u0445 \u0447\u0430\u0441\u043e\u0432, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0445, \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0438\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c:<br \/> \n<ul>\n<li><b>getRequiredControlApiVersion<\/b> \u2013 \u0432\u0435\u0440\u0441\u0438\u044e 1 (\u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0447\u0430\u0441\u043e\u0432). \u0415\u0441\u043b\u0438 \u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 2 \u2013 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0431\u044b \u0442\u043e\u043b\u044c\u043a\u043e Smartwatch 2, \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u0431\u044b \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c.<\/li>\n<li><b>getTargetControlApiVersion<\/b> \u2013 \u0446\u0435\u043b\u0435\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f API, \u0437\u0434\u0435\u0441\u044c 2 \u0434\u043b\u044f \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 Smartwatch 2<\/li>\n<li><b>isDisplaySizeSupported<\/b> \u2013 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u044d\u043a\u0440\u0430\u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c, \u0445\u043e\u0442\u0438\u043c \u043b\u0438 \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0451\u043c \u0438\u043b\u0438 \u043d\u0435\u0442.<\/li>\n<\/ul>\n<p>  <\/li>\n<li>\u201c\u0412\u0438\u0434\u0436\u0435\u0442\u201d (Widget) \u2013 \u044d\u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u044d\u043a\u0440\u0430\u043d\u0430. \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0447\u0430\u0441\u043e\u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442. \u0423\u0432\u044b.<\/li>\n<\/ul>\n<p>  \u041f\u043b\u044e\u0441 \u043f\u0430\u0447\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 <b>getExtensionRegistrationConfiguration<\/b>, \u043d\u043e \u0442\u0430\u043c \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432.<\/p>\n<h2>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h2>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043c\u043e\u043c\u0435\u043d\u0442. \u041d\u0430 \u0447\u0430\u0441\u044b \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0447\u0430\u0441\u043e\u0432 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438. \u0412\u0441\u0451. \u041d\u0438\u0447\u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435. \u0418\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b, \u043d\u043e \u043c\u044b-\u0442\u043e \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0438\u0448\u0435\u043c \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043e\u0431\u043e\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 <b>Layout<\/b>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u2013 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043d\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u043b\u0438\u043a\u043e\u0432 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0411\u0435\u0437\u0440\u0430\u0434\u043e\u0441\u0442\u043d\u0430\u044f \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0430\u2026 \u041d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435. \u0412\u043e\u0442 \u0442\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0430\u0448\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/671\/cc3\/15e\/671cc315ed7c3693495d7b6de1ee9ea1.png\"\/><\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0442\u0430\u043a \u2014 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430 \u0432\u0441\u0451 \u043e\u0442\u0432\u0435\u0442\u0438\u0442:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoControl.cs<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoControl extends ControlExtension {      static final Rect buttonStopPlaySmartWatch = new Rect(43, 42, 85, 88);      public DemoControl(Context context, String hostAppPackageName) {         super(context, hostAppPackageName);     }      @Override     public void onTouch(final ControlTouchEvent event) {\/\/\u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u043a\u043b\u0438\u043a\u0438         if (event.getAction() == Control.Intents.CLICK_TYPE_SHORT) {             if (buttonStopPlaySmartWatch.contains(event.getX(), event.getY())){                 MusicBackgroundControlWrapper.TogglePausePlay(mContext);             }         }     }      @Override     public void onSwipe(int direction) {\/\/\u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u0436\u0435\u0441\u0442\u044b         if (direction== Control.Intents.SWIPE_DIRECTION_UP){             MusicBackgroundControlWrapper.VolumeUp(mContext);         }         if (direction==Control.Intents.SWIPE_DIRECTION_DOWN){             MusicBackgroundControlWrapper.VolumeDown(mContext);         }         if (direction==Control.Intents.SWIPE_DIRECTION_LEFT){             MusicBackgroundControlWrapper.Next(mContext);         }         if (direction==Control.Intents.SWIPE_DIRECTION_RIGHT){             MusicBackgroundControlWrapper.Prev(mContext);         }     }      @Override     public void onResume() {\/\/\u0440\u0438\u0441\u0443\u0435\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435         Bitmap mPicture = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.control_picture);         showBitmap(mPicture);     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 <b>onSwipe<\/b> \u0438 <b>onTouch<\/b> \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0441\u0430\u043c\u0438 \u0437\u0430 \u0441\u0435\u0431\u044f, <b>onResume<\/b> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u0430\u043a \u043e\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0430\u0441\u044b \u0432\u044b\u0448\u043b\u0438 \u0438\u0437 \u0441\u043f\u044f\u0447\u043a\u0438 \u0438\u043b\u0438 \u0431\u044b\u043b\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  <b>MusicBackgroundControlWrapper<\/b> \u2013 \u044d\u0442\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0435\u0435\u0440\u043e\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0439\u043d\u044b\u0445 \u043a\u043b\u0430\u0432\u0438\u0448. \u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u043b\u0435\u0435\u0440\u0430\u043c\u0438 \u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u043c\u0438, \u043d\u043e \u0442\u0430\u043c \u0433\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2013 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0443\u0440\u0430. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0435\u0442\u0435 \u043b\u0443\u0447\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 (\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Android 2.3 \u0438 \u0432\u044b\u0448\u0435!) \u2013 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">MusicBackgroundControlWrapper.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class MusicBackgroundControlWrapper {     public static void KeyPressDownAndUp(int key,Context context){         long eventtime = SystemClock.uptimeMillis() - 1;          Intent downIntent = new Intent(Intent.ACTION_MEDIA_BUTTON, null);         KeyEvent downEvent = new KeyEvent(eventtime, eventtime,                 KeyEvent.ACTION_DOWN, key, 0);         downIntent.putExtra(Intent.EXTRA_KEY_EVENT, downEvent);         context.sendOrderedBroadcast(downIntent, null);          eventtime++;         Intent upIntent = new Intent(Intent.ACTION_MEDIA_BUTTON, null);         KeyEvent upEvent = new KeyEvent(eventtime, eventtime,                 KeyEvent.ACTION_UP, key, 0);         upIntent.putExtra(Intent.EXTRA_KEY_EVENT, upEvent);         context.sendOrderedBroadcast(upIntent, null);     }      public static void VolumeUp(Context context){         AudioManager audioManager =(AudioManager)context.getSystemService(Context.AUDIO_SERVICE);          int max=audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);         int current=audioManager.getStreamVolume(AudioManager.STREAM_MUSIC);          if (current&lt;max){             current++;         }          audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,                 current,0);     }      public static void VolumeDown(Context context){         AudioManager audioManager =(AudioManager)context.getSystemService(Context.AUDIO_SERVICE);          int current=audioManager.getStreamVolume(AudioManager.STREAM_MUSIC);          if (current&gt;0){             current--;         }          audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,                 current,0);     }      public static void TogglePausePlay(Context context){         KeyPressDownAndUp(KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE,context);     }      public static void Next(Context context){         KeyPressDownAndUp(KeyEvent.KEYCODE_MEDIA_NEXT, context);     }      public static void Prev(Context context){         KeyPressDownAndUp(KeyEvent.KEYCODE_MEDIA_PREVIOUS, context);     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0447\u0430\u0441\u043e\u0432 \u043c\u044b \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c <b>DemoControl2<\/b> \u043e\u0442 <b>DemoControl<\/b>, \u0441 \u043f\u0430\u0440\u043e\u0439 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u2013 \u0432 onResume() \u0431\u0443\u0434\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0430 \u0432 onTouch \u2013 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0438\u043d\u044b\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoControl2.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoControl2 extends DemoControl {     static final Rect buttonStopPlaySmartWatch2 = new Rect(59, 52, 167, 122);      public DemoControl2(Context context, String hostAppPackageName) {         super(context, hostAppPackageName);     }      @Override     public void onTouch(final ControlTouchEvent event) {\/\/\u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u043a\u043b\u0438\u043a\u0438         if (event.getAction() == Control.Intents.CLICK_TYPE_SHORT) {             if (buttonStopPlaySmartWatch2.contains(event.getX(), event.getY())){                 MusicBackgroundControlWrapper.TogglePausePlay(mContext);             }         }     }      @Override     public void onResume() {\/\/\u0440\u0438\u0441\u0443\u0435\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435         Bitmap mPicture = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.control_picture2);         showBitmap(mPicture);     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<h2>\u0412\u0438\u0434\u0436\u0435\u0442<\/h2>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u0438\u0434\u0436\u0435\u0442. \u041a\u0430\u043d\u043e\u043d\u0438\u0447\u043d\u044b\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 <b>92&#215;92<\/b> \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0434\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0439. \u041c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0442\u044f\u043d\u0443\u0442\u044c \u0435\u0433\u043e \u0438 \u043d\u0430 \u0431\u041e\u043b\u044c\u0448\u0438\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f (\u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e <b>128&#215;110<\/b>), \u043d\u043e \u043e\u043d \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u043a\u0438 \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0438\u043d\u0434\u0438\u043a\u0430\u0446\u0438\u0438. <\/p>\n<p>  \u041d\u0430\u043c \u043e\u0442 \u043d\u0435\u0433\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u2013 \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0447\u0430\u0441\u0430\u0445. \u041a\u043b\u0430\u0441\u0441, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0432\u0441\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoWidget.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoWidget extends WidgetExtension {      public DemoWidget(Context context, String hostAppPackageName) {         super(context, hostAppPackageName);     }      @Override     public void onStartRefresh() { \/\/\u041a\u043e\u0433\u0434\u0430 \u0432\u0438\u0434\u0436\u0435\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u0438\u0434\u0438\u043c\u044b\u043c \u0438\/\u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f.         showBitmap(new DemoWidgetImage(mContext).getBitmap());     }      @Override     public void onStopRefresh() { \/\/\u041a\u043e\u0433\u0434\u0430 \u0432\u0438\u0434\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u044b\u043c. \u041d\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043c\u044b \u0438 \u0442\u0430\u043a \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0438 \u043d\u0435 \u0430\u043d\u0438\u043c\u0438\u0440\u0443\u0435\u043c.     }      @Override     public void onTouch(final int type, final int x, final int y) {         if (!SmartWatchConst.ACTIVE_WIDGET_TOUCH_AREA.contains(x, y)) { \/\/\u0435\u0441\u043b\u0438 \u043a\u043b\u0438\u043a\u043d\u0443\u043b\u0438 \u0432\u043d\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f - \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u043c             return;         }          \/\/\u043f\u043e \u043a\u043b\u0438\u043a\u0443 (\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u0438\u043b\u0438 \u0434\u043e\u043b\u0433\u043e\u043c\u0443) \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b         if (type == Widget.Intents.EVENT_TYPE_SHORT_TAP || type==Widget.Intents.EVENT_TYPE_LONG_TAP) {             Intent intent = new Intent(Control.Intents.CONTROL_START_REQUEST_INTENT);             intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, mContext.getPackageName());             intent.setPackage(mHostAppPackageName);             mContext.sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);         }     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0425\u043e\u0442\u044f \u0435\u0441\u0442\u044c \u0442\u0430\u043c \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442. \u0412 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 API, \u0441\u0440\u0435\u0434\u0438 \u0443\u0442\u0438\u043b\u0438\u0442 \u0435\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u044f\u0449\u0438\u0439 <b>Layout<\/b> \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u0413\u0440\u0435\u0445 \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0445\u043e\u0442\u044f \u0431\u044b \u0438 \u0432 \u0446\u0435\u043b\u044f\u0445 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. \u0420\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0430\u0441\u0441 <b>DemoWidgetImage<\/b>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoWidgetImage.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoWidgetImage extends SmartWatchWidgetImage {      public DemoWidgetImage(Context context) {         super(context);         setInnerLayoutResourceId(R.layout.music_widget_image);     }      @Override     protected void applyInnerLayout(LinearLayout innerLayout) {         \/\/\u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c - \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043e\u0431\u044f\u0437\u0430\u043d\u044b. \u0423\u0433\u0443.     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<h2>\u041e\u043a\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/h2>\n<p>  \u041d\u0443 \u0442\u0443\u0442 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043c\u0438\u043d\u0438\u043c\u0443\u043c. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 <b>DemoRegistrationInformation<\/b> \u043c\u044b \u0443\u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0438\u043c\u044f \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438, \u0442\u043e \u0442\u0443\u0442 \u043d\u0430\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0435\u0451 \u043d\u0443 \u0445\u043e\u0442\u044c \u0447\u0435\u043c-\u0442\u043e. \u0414\u0430\u0436\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443. \u041f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u0434.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">DemoConfigActivity.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">public class DemoConfigActivity extends Activity {     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.config);     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">config.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;LinearLayout xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot;               android:orientation=&quot;vertical&quot;               android:layout_width=&quot;match_parent&quot;               android:layout_height=&quot;match_parent&quot;&gt;      &lt;TextView             android:layout_width=&quot;wrap_content&quot;             android:layout_height=&quot;wrap_content&quot;             android:textAppearance=&quot;?android:attr\/textAppearanceMedium&quot;             android:text=&quot;\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442&quot;             android:id=&quot;@+id\/textView&quot; android:layout_gravity=&quot;center_horizontal&quot;\/&gt; &lt;\/LinearLayout&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<h2>\u041a\u0430\u043a \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 Google Play<\/h2>\n<p>  \u0427\u0442\u043e \u0431\u044b \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0430\u043c\u0438 \u0432 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2013 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0442\u0435\u043a\u0441\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 Google Play:  <\/p>\n<ul>\n<li>\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 SmartWatch \u2014 \u201cLiveWare extension for SmartWatch\u201d<\/li>\n<li>\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 SmartWatch 2 \u2013 \u201cSmart Connect extension for SmartWatch 2\u201d<\/li>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u044b \u043e\u0431\u0430 \u2013 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/li>\n<\/ul>\n<p>  \u0427\u0442\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0430\u043c\u0438\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0435\u0442. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0432\u043b\u0435\u043f\u0438\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0446\u0435\u043d\u043a\u0443, \u0434\u0430. \u041f\u0440\u0438\u0432\u044b\u043a\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043c\u0438\u0440 Google Play! \u041d\u043e \u043d\u0430\u043c \u0432\u0435\u0434\u044c \u043d\u0435 \u0432\u0430\u0436\u043d\u0430 \u043e\u0446\u0435\u043d\u043a\u0430, \u043d\u0430\u043c \u0432\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u043c\u0438\u0440 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0443\u0442\u043e\u0447\u043a\u0443 \u043b\u0443\u0447\u0448\u0435, \u0432\u0435\u0440\u043d\u043e\u2026?<\/p>\n<h2>\u0427\u0442\u043e \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438-\u043f\u0440\u0438\u043c\u0435\u0440\u0435<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u041e\u043a\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a (\u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0436\u0435\u0441\u0442\u043e\u0432).<\/li>\n<li>\u0411\u043e\u043b\u0435\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0438 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0435\u0435\u0440\u0430\u043c\u0438. \u0412 Android 4.4 \u0443\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043d\u0443\u0436\u043d\u044b\u0439 API (<b>Remote controllers<\/b> \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f), \u0430 \u0432\u043e\u0442 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u2013 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/li>\n<li>\u0421\u0434\u0435\u043b\u0430\u0442\u044c (\u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c, \u043d\u0430\u0439\u0442\u0438) \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0430\u0441\u0447\u0435\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u0432\u044c\u044e\u0448\u043a\u0435. \u0427\u0442\u043e \u0431\u044b \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u0432\u0434\u0440\u0443\u0433 Sony \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0442\u0440\u0435\u0442\u044c\u0438 \u0447\u0430\u0441\u044b \u0441 \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c.<\/li>\n<\/ul>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/8b8\/273\/af4\/8b8273af418715448fa888982afe60ee.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/9d5\/b33\/d91\/9d5b33d910b521a6c5f86d31ee1de702.png\"\/> <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/c18\/df4\/da0\/c18df4da0ef1e4abeb832674d9df9c58.png\"\/> <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/8d3\/4df\/277\/8d34df2776f5ce84d5302adf79b02fa0.png\"\/><\/p>\n<h2>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438<\/h2>\n<p>  <a href=\"https:\/\/github.com\/Newbilius\/smartwatch_habra_demo\">github.com\/Newbilius\/smartwatch_habra_demo<\/a><\/p>\n<h2>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0432 \u043b\u0438\u0446\u0435 \u0441\u0430\u0439\u0442\u0430 Sony<\/h2>\n<p>  <a href=\"http:\/\/developer.sonymobile.com\/knowledge-base\/sony-add-on-sdk\/\">developer.sonymobile.com\/knowledge-base\/sony-add-on-sdk\/<\/a><\/p>\n<p>  \u0418 \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u0435\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u0444\u0438\u0447\u0430\u043c \u0447\u0430\u0441\u043e\u0432 \u2013 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 <b>examples<\/b> (\u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0431\u044b\u043b \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d \u0432\u044b\u0448\u0435), \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439. \u0426\u0435\u043b\u044c \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u2013 \u0434\u0430\u0442\u044c \u0432\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u201c\u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u201d \u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>  P.S. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043d\u043e \u043d\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u2013 \u0432 Google Play \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0435. \u0412 \u043d\u0451\u043c \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0436\u0435\u0441\u0442\u043e\u0432, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043a\u0440\u044b\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u201c\u043f\u0430\u0443\u0437\u0430\u201d, \u043f\u043b\u044e\u0441 \u0440\u0435\u0436\u0438\u043c \u0441 \u201c\u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438\u201d \u0432\u043c\u0435\u0441\u0442\u043e \u0436\u0435\u0441\u0442\u043e\u0432. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044d\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043d\u043e \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0439, \u0438\u0431\u043e \u043d\u0438 \u0441\u0441\u044b\u043b\u043e\u043a, \u043d\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0443\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0434\u0430 \u0438 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f\u0432\u043d\u043e \u0438\u043d\u0430\u044f. \u0415\u0441\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0430\u0431\u0437\u0430\u0446 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0439 \u2013 \u044f \u0435\u0433\u043e \u0443\u0434\u0430\u043b\u044e.    \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\/210898\/\"> http:\/\/habrahabr.ru\/post\/210898\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" align=\"right\" src=\"http:\/\/habr.habrastorage.org\/post_images\/609\/ac6\/02e\/609ac602e9eac6c5ac124154d95a1540.jpg\"\/> <b>Sony SmartWatch<\/b> \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u0435\u0432\u0430\u0439\u0441 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043e\u0431\u043e\u0448\u043b\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 \u043d\u0430 \u0445\u0430\u0431\u0440\u0435. \u041d\u0443 \u0440\u0430\u0437 \u0442\u0430\u043a \u2013 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c! \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043b\u044e\u0431\u044b\u043c \u0430\u0443\u0434\u0438\u043e-\u043f\u043b\u0435\u0435\u0440\u043e\u043c.<\/p>\n<p>  \u0421\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0443\u0436\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0437\u043d\u0430\u0435\u0442, \u0441 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u0434 Android, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0442\u0435\u0445, \u043a\u0442\u043e \u0432\u0438\u0434\u0435\u043b \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u0447\u0430\u0441\u044b \u0438\u043b\u0438 \u0447\u0438\u0442\u0430\u043b \u043f\u0440\u043e \u043d\u0438\u0445 \u043e\u0431\u0437\u043e\u0440\u044b, \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b. \u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434 \u043f\u0435\u0440\u0432\u0443\u044e \u0438 \u0432\u0442\u043e\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u0438 <b>SmartWatch<\/b>.<\/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-210898","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210898","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=210898"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210898\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}