{"id":201752,"date":"2013-11-12T08:34:02","date_gmt":"2013-11-12T04:34:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=201752"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=201752","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0439\u0442 \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e jQuery Mobile \u0438 PhoneGap<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" align=\"right\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ad6\/d68\/a0e\/ad6d68a0ee4381344549dcd39398d165.png\"\/><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u044f \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Android, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u0441\u0430\u0439\u0442\u0430 <a href=\"http:\/\/ru.brainexer.com\">brainexer<\/a> \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0412\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 <a href=\"http:\/\/jquerymobile.com\/\">jQuery Mobile<\/a> \u0438 <a href=\"http:\/\/phonegap.com\/\">PhoneGap<\/a>. \u0414\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u043e\u0437\u043d\u0430\u043d\u0438\u0439 \u0432 \u043e\u0431\u0440\u0430\u0441\u0442\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u043f\u043b\u0430\u0441\u0442 \u043d\u043e\u0432\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432\u044b\u0436\u0438\u043c\u043a\u043e\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u0431\u044b \u0438 \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 quick start \u2014 \u043a\u0430\u043a \u0438\u0437 \u043f\u0430\u0447\u043a\u0438 html \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0432 Google Play.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>jQuery Mobile<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u043b\u0438\u0448\u043d\u0435\u0435 (\u043c\u0435\u043d\u044e, \u0444\u0443\u0442\u0435\u0440 \u0438 \u0442.\u0434.) \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0432 data-role=\u00abcontent\u00bb.  <\/p>\n<pre><code class=\"html\">&lt;!doctype html&gt; &lt;html&gt; \t&lt;head&gt; \t\t&lt;meta charset=&quot;utf-8&quot; \/&gt; \t\t&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt; \t\t&lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/code.jquery.com\/mobile\/1.3.2\/jquery.mobile-1.3.2.min.css&quot;&gt; \t\t&lt;script src=&quot;http:\/\/code.jquery.com\/jquery-1.9.1.min.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;http:\/\/code.jquery.com\/mobile\/1.3.2\/jquery.mobile-1.3.2.min.js&quot;&gt;&lt;\/script&gt; \t&lt;\/head&gt; \t&lt;body&gt; \t\t&lt;div data-role=&quot;page&quot;&gt; \t\t\t&lt;div data-role=&quot;header&quot;&gt; \t\t\t\t&lt;h1&gt;\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a&lt;\/h1&gt; \t\t\t&lt;\/div&gt; \t\t\t&lt;div data-role=&quot;content&quot;&gt; \t\t\t   &lt;p&gt;\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435&lt;\/p&gt; \t\t\t&lt;\/div&gt; \t\t&lt;\/div&gt; \t&lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u041d\u0443\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0434 \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u0444\u0430\u0439\u043b\u044b js \u0438 css \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438.<br \/>  \u041c\u0435\u043d\u044e \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 index.html \u0432 \u0432\u0438\u0434\u0435 \u0430\u043a\u043a\u043e\u0440\u0434\u0435\u043e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0438\u0437 collapsible-set \u0438 listview   <\/p>\n<pre><code class=\"html\">&lt;div data-role=&quot;collapsible-set&quot; data-theme=&quot;b&quot;&gt; \t&lt;div data-role=&quot;collapsible&quot;&gt; \t\t&lt;h3&gt;\u0420\u0430\u0437\u0434\u0435\u043b 1&lt;\/h3&gt; \t\t&lt;ul data-role=&quot;listview&quot;&gt; \t\t\t&lt;li&gt;&lt;a href=&quot;page1.html&quot;&gt;\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 1&lt;\/a&gt;&lt;\/li&gt; \t\t\t&lt;li&gt;&lt;a href=&quot;page2.html&quot;&gt;\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 2&lt;\/a&gt;&lt;\/li&gt; \t\t&lt;\/ul&gt; \t&lt;\/div&gt; \t&lt;div data-role=&quot;collapsible&quot;&gt; \t\t&lt;h3&gt;\u0420\u0430\u0437\u0434\u0435\u043b 2&lt;\/h3&gt; \t\t&lt;ul data-role=&quot;listview&quot;&gt; \t\t\t&lt;li&gt;&lt;a href=&quot;page3.html&quot;&gt;\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 3&lt;\/a&gt;&lt;\/li&gt; \t\t&lt;\/ul&gt; \t&lt;\/div&gt; &lt;\/div&gt;  <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/5d8\/6eb\/41c\/5d86eb41c99b7cb00f2bc54be2f3b4e7.png\"\/><\/p>\n<p>  \u0423 jQuery Mobile \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043c [a-e] \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c data-theme \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043a\u0430\u043a\u0443\u044e \u0445\u043e\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u00abb\u00bb \u2014 \u0441\u0438\u043d\u044f\u044f.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0438, \u0442\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0431\u043b\u043e\u043a  <\/p>\n<pre><code class=\"html\">&lt;div id=&quot;dialog1&quot; data-role=&quot;page&quot;&gt; \t&lt;div data-role=&quot;header&quot;&gt; \t\t&lt;h1&gt;\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0434\u0438\u0430\u043b\u043e\u0433\u0430&lt;\/h1&gt; \t&lt;\/div&gt; \t&lt;div data-role=&quot;content&quot;&gt; \t\t&lt;p&gt;\u0422\u0435\u043b\u043e \u0434\u0438\u0430\u043b\u043e\u0433\u0430&lt;\/p&gt; \t&lt;\/div&gt; &lt;\/div&gt;  <\/code><\/pre>\n<p>  \u0418 \u0441\u0441\u044b\u043b\u043a\u0443 \u0432\u0438\u0434\u0430,  <\/p>\n<pre><code class=\"html\">&lt;a data-rel=&quot;dialog&quot; href=&quot;#dialog1&quot;&gt; \u0414\u0438\u0430\u043b\u043e\u0433 &lt;\/a&gt;  <\/code><\/pre>\n<p>   \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0438\u0430\u043b\u043e\u0433.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u0430\u043a\u043e\u0435 \u043b\u0438\u0431\u043e \u0434\u043e\u043f \u043c\u0435\u043d\u044e, \u0442\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 header \u0441\u043f\u0440\u0430\u0432\u0430. \u0421\u0430\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u043b\u0435\u0432\u043e, \u0438\u043d\u0430\u0447\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0430\u0435\u0437\u0436\u0430\u0442\u044c.  <\/p>\n<pre><code class=\"html\">&lt;div data-role=&quot;header&quot;&gt; \t&lt;h1 style=&quot;text-align:left;margin-left:15px;&quot;&gt;\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a&lt;\/h1&gt; \t&lt;div data-type=&quot;horizontal&quot; data-role=&quot;controlgroup&quot; class=&quot;ui-btn-right&quot;&gt; \t\t&lt;a data-rel=&quot;dialog&quot; data-iconpos=&quot;notext&quot; data-icon=&quot;gear&quot; data-role=&quot;button&quot; href=&quot;#dialog1&quot;&gt;&lt;\/a&gt; \t\t&lt;a data-rel=&quot;dialog&quot; data-iconpos=&quot;notext&quot; data-icon=&quot;bars&quot; data-role=&quot;button&quot; href=&quot;#dialog2&quot;&gt;&lt;\/a&gt; \t&lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/6b2\/038\/0c6\/6b20380c6037590efebca8aad7f5673e.png\"\/><\/p>\n<p>  \u0422\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b \u043a\u043d\u043e\u043f\u043a\u0438 data-role=\u00abbutton\u00bb \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u043a\u043e\u043d\u043a\u0430 data-icon=\u00abgear\u00bb \u0431\u0435\u0437 \u0442\u0435\u043a\u0441\u0442\u0430 data-iconpos=\u00abnotext\u00bb<\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0432\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u0430 \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0421\u043e \u0432\u0441\u0435\u043c\u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435<br \/>  <a href=\"http:\/\/view.jquerymobile.com\/1.3.2\/dist\/demos\/\">view.jquerymobile.com\/1.3.2\/dist\/demos\/<\/a><\/p>\n<h4>PhoneGap<\/h4>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0437\u0430\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 apk.<br \/>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f <a href=\"http:\/\/nodejs.org\">nodejs.org<\/a>, \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441\u0430\u043c phonegap  <\/p>\n<pre><code class=\"bash\">npm install -g phonegap <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 HelloWorld  <\/p>\n<pre><code class=\"bash\">phonegap create MyApp <\/code><\/pre>\n<p>  \u0412\u0441\u0435 html \u0444\u0430\u0439\u043b\u044b \u043a\u043b\u0430\u0434\u0443\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 www, index.html \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430. <br \/>  \u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430.<br \/>  1)\u0421\u043a\u0430\u0447\u0430\u0442\u044c Android SDK \u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 phonegap build \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435. \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u043b\u044e\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 SDK \u2014 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 Android, \u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0438 \u043c\u0438\u043d\u0443\u0441, \u043e\u043d \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u0440\u043c\u043e\u0437\u043d\u043e\u0439.<br \/>  2)\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 build.phonegap.com \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0431\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u0422\u043e \u0435\u0441\u0442\u044c, \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044f sdk Android, Windows Phone \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c apk, xap \u0438 \u0442.\u0434. \u0412\u043e\u043f\u0440\u043e\u0441 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u0447\u0435\u043c \u0438\u0445 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041c\u0438\u043d\u0443\u0441 \u0443 \u044d\u0442\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0422\u0430\u043a \u043a\u0430\u043a \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0441\u0431\u043e\u0440\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<br \/>  \u0427\u0442\u043e \u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e build.phonegap.com \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c  <\/p>\n<pre><code class=\"bash\">phonegap remote build android <\/code><\/pre>\n<p>  <\/p>\n<h5>\u041f\u043b\u0430\u0433\u0438\u043d\u044b.<\/h5>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u0442\u043e \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u0430\u043c\u0435\u0440\u0435 \u0438\u043b\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0442\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0443 \u043c\u0435\u043d\u044f \u0437\u0432\u0443\u043a \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e html audio, \u043d\u043e \u0432 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0435 \u0441 \u043d\u0438\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Media \u043f\u043b\u0430\u0433\u0438\u043d, \u0442\u0430\u043a \u0436\u0435 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043b\u043e\u043a\u0430\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u044f\u0437\u044b\u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043d\u0443\u0436\u0435\u043d \u043f\u043b\u0430\u0433\u0438\u043d Globalization. <br \/>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c cordova  <\/p>\n<pre><code class=\"bash\">npm install -g cordova <\/code><\/pre>\n<p>  \u0418 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f  <\/p>\n<pre><code class=\"bash\">cordova plugin add org.apache.cordova.media  cordova plugin add org.apache.cordova.globalization <\/code><\/pre>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439  <\/p>\n<pre><code class=\"bash\">cordova plugin list [ 'org.apache.cordova.globalization',   'org.apache.cordova.media' ] <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 html \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 cordova.js  <\/p>\n<pre><code class=\"html\">&lt;script src=&quot;cordova.js&quot;&gt;&lt;\/script&gt; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c. \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0430\u043f\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f deviceready.  <\/p>\n<pre><code class=\"javascript\">document.addEventListener(&quot;deviceready&quot;, onDeviceReady, false); function onDeviceReady() { \tnavigator.globalization.getLocaleName( \t\tfunction (locale) { \t\t\talert(locale); \t\t}, \t\tfunction (error) { \t\t\talert(error); \t\t}); } <\/code><\/pre>\n<h5>\u0418\u043a\u043e\u043d\u043a\u0438 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438<\/h5>\n<p>  \u0412 \u043f\u0430\u043f\u043a\u0430\u0445 \u00abwww\\res\\icon\\android\\\u00bb \u00abwww\\res\\screen\\android\\\u00bb \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0438. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u0430\u043c \u043b\u0435\u0436\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441 \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430\u043c\u0438 PhoneGap, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0431\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445 \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435. \u0422\u0430\u043a \u0436\u0435 \u043e\u0431\u0449\u0430\u044f \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0430\u044f \u0438\u043a\u043e\u043d\u043a\u0430 \u043b\u0435\u0436\u0438\u0442\u044c \u0432 www\\ \u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f icon.png <\/p>\n<h5>\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/h5>\n<p>  \u0424\u0430\u0439\u043b config.xml \u043b\u0435\u0436\u0438\u0442\u044c \u0432 \u043f\u0430\u043f\u043a\u0435 www, \u0432 \u043d\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c id \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u0430\u0432\u0442\u043e\u0440\u0430.  <\/p>\n<pre><code class=\"xml\">&lt;widget id=&quot;com.phonegap.helloworld&quot; version=&quot;1.0.0&quot;&gt;     &lt;name&gt;HelloWorld&lt;\/name&gt;     &lt;description&gt;         Hello World sample application that responds to the deviceready event.     &lt;\/description&gt;     &lt;author email=&quot;support@phonegap.com&quot; href=&quot;http:\/\/phonegap.com&quot;&gt;         PhoneGap Team     &lt;\/author&gt; &lt;\/widget&gt; <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0420\u0435\u043b\u0438\u0437 \u0432\u0435\u0440\u0441\u0438\u044f<\/h5>\n<p>  \u0427\u0442\u043e \u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e apk \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0432 Google Play, \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b keystore \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b keytool.exe \u0438\u0437 JDK \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430 build.phonegap.com. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c rebuild \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c TestApp-release.apk<\/p>\n<h4>Google Play<\/h4>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u043d\u0430 <a href=\"https:\/\/play.google.com\/apps\/publish\/signup\/\">play.google.com\/apps\/publish\/signup\/<\/a>.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432\u043d\u043e\u0441\u0438\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u0438 \u0441\u043a\u0440\u0438\u0448\u043e\u0442\u044b. \u0417\u0430\u043b\u0438\u0432\u0430\u0435\u043c apk \u0438 \u0436\u043c\u0435\u043c \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c. \u0412\u0441\u0435, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u0442\u043e\u0432\u043e.<\/p>\n<h4>\u041a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0441\u0442\u044c<\/h4>\n<p>  \u0412 \u043a\u043e\u043d\u0446\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441. \u041a\u0440\u043e\u043c\u0435 Android \u0432\u0435\u0440\u0441\u0438\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u0438\u0437 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u044d\u0442\u043e iOS \u0438 Windows Phone, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Android \u0443 \u043d\u0438\u0445 \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u043e \u044f \u043f\u043e\u043a\u0430 \u044d\u0442\u0438\u043c \u0431\u043e\u043d\u0443\u0441\u043e\u043c \u043d\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f.    \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\/201752\/\"> http:\/\/habrahabr.ru\/post\/201752\/<\/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\/ad6\/d68\/a0e\/ad6d68a0ee4381344549dcd39398d165.png\"\/><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u044f \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 Android, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0437 \u0441\u0430\u0439\u0442\u0430 <a href=\"http:\/\/ru.brainexer.com\">brainexer<\/a> \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0412\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 <a href=\"http:\/\/jquerymobile.com\/\">jQuery Mobile<\/a> \u0438 <a href=\"http:\/\/phonegap.com\/\">PhoneGap<\/a>. \u0414\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u043e\u0437\u043d\u0430\u043d\u0438\u0439 \u0432 \u043e\u0431\u0440\u0430\u0441\u0442\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0441\u043e\u0437\u043d\u0430\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u043f\u043b\u0430\u0441\u0442 \u043d\u043e\u0432\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432\u044b\u0436\u0438\u043c\u043a\u043e\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u0431\u044b \u0438 \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 quick start \u2014 \u043a\u0430\u043a \u0438\u0437 \u043f\u0430\u0447\u043a\u0438 html \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0432 Google Play.  <\/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-201752","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/201752","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=201752"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/201752\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}