{"id":208504,"date":"2014-01-09T01:26:03","date_gmt":"2014-01-08T21:26:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=208504"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=208504","title":{"rendered":"<span class=\"post_title\">\u0415\u0449\u0435 \u0440\u0430\u0437 \u043e\u0431 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 Android \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0434\u0436\u0435\u043d\u0442\u043b\u044c\u043c\u0435\u043d\u0441\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412\u043e\u0442 \u043d\u0430\u0434\u0443\u043c\u0430\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u0437\u043e\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0435\u0433\u043a\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 Android. <br \/>  \u0421\u043f\u0438\u0441\u043e\u043a \u0432\u044b\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439:  <\/p>\n<ul>\n<li><a href=\"http:\/\/androidannotations.org\">Android Annotations<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/telly\/groundy\">Groundy<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/square\/retrofit\">Retrofit<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/hamsterksu\/Android-AnnotatedSQL\">AnnotatedSQL<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/futuresimple\/android-db-commons\">Android db-commons<\/a><\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u0447\u0430\u0442\u044c \u043d\u0430\u0434\u043e \u0441 \u0442\u043e\u0433\u043e, <s>\u0447\u0442\u043e \u044f\u0437\u044b\u043a\u0438 \u043d\u0435 \u043c\u043e\u0439 \u043a\u043e\u043d\u0435\u043a, \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u0449\u0443 \u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f<\/s> \u0437\u0430\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0447\u0435\u043c \u044d\u0442\u043e \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d\u043e \u0438 \u0437\u0430\u0447\u0435\u043c \u043d\u0430\u0434\u043e. <br \/>  \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0441\u0435 \u043f\u0440\u043e\u0434\u0438\u043a\u0442\u043e\u0432\u0430\u043d\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0418\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430, \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430, \u043d\u0430\u0434\u043e \u0438\u043c\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/2bc\/8a3\/221\/2bc8a3221cb100fe3a96360d03cefade.png\"\/> <br \/>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 3 \u0441\u043b\u043e\u044f \u2014 \u00ab\u043c\u043e\u0440\u0434\u043e\u0447\u043a\u0430\u00bb, \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0433\u0434\u0435 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043a\u0440\u044b\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0430. <\/p>\n<p>  \u042f \u043d\u0435 \u0445\u043e\u0447\u0443 \u0440\u0430\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0445\u043e\u043b\u0438\u0432\u0430\u0440 \u0438 \u0441\u043f\u043e\u0440\u0438\u0442\u044c \u043e\u0431 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435, \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u0442\u043e \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u044e \u044d\u0442\u043e \u044f \u0438 \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u044e\u0442 \u043c\u043e\u0438 \u043a\u043e\u043b\u043b\u0435\u0433\u0438. <\/p>\n<h4>\u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a<\/h4>\n<p>  <b>\u041a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440<\/b> \u043e\u0447\u0435\u043d\u044c \u043c\u043e\u0449\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430 \u0441 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u044d\u0442\u043e \u0432\u0441\u0435 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438. \u042e\u0437\u0430\u0435\u043c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u0430\u043a \u043e\u0431\u0432\u0435\u0440\u0442\u043a\u0443 \u043d\u0430\u0434 \u0431\u0430\u0437\u043e\u0439. \u0421\u043f\u043e\u0441\u043e\u0431\u0430 \u043a\u0430\u043a \u0442\u0443\u0434\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0432\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0438\u043d\u0435\u0442\u0430 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. <\/p>\n<p>  <b>\u0421\u0435\u0440\u0432\u0438\u0441 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434<\/b> \u2014 \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435 \u044f\u0441\u043d\u043e, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e(\u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435). \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b \u2014 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0431\u0430\u0437\u0443, \u043f\u043e\u0445\u043e\u0434\u044b \u0432 \u0438\u043d\u0435\u0442, \u0434\u0430 \u0438 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u044b. <br \/>  \u041f\u043e\u0447\u0435\u043c\u0443 \u00ab\u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u00bb? \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u043a\u0430\u0436\u0434\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u2014 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430. \u041a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u043d\u0430\u0435\u0442 \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0441 \u043d\u0438\u043c\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435\u043c \u043e \u0441\u0432\u043e\u0435\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438. <br \/>  \u0412\u043e\u0442 <a href=\"http:\/\/habrahabr.ru\/post\/144275\">\u0442\u0443\u0442<\/a> <a href=\"http:\/\/habrahabr.ru\/users\/evilduck\/\" class=\"user_link\">evilduck<\/a> \u0443\u0436\u0435 \u0432\u0441\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043b.<\/p>\n<p>  <b>\u00ab\u041c\u043e\u0440\u0434\u043e\u0447\u043a\u0430\u00bb<\/b> \u2014 \u043d\u0430\u0431\u043e\u0440 \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438\/\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0425\u043e\u0447\u0443 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f(\u043d\u0438 \u043a\u0430\u043a\u0438\u0445 \u043f\u043e\u0445\u043e\u0434\u043e\u0432 \u0432 \u0431\u0430\u0437\u0443 \u0438\u0437 UI \u0434\u0430\u0436\u0435 \u0437\u0430 \u043e\u0434\u043d\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c). \u0418 \u0442\u0443\u0442 \u043d\u0430\u043c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043b\u043e\u0430\u0434\u0435\u0440 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u2014 \u0442\u043e\u0436\u0435 \u0444\u0438\u0447\u0430 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438. \u0421\u0442\u043e\u0438\u0442 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 CursorLoader <\/p>\n<h4>\u0412\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434<\/h4>\n<p>  \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0434\u0435\u043b\u0430\u043b \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434. \u041f\u043e\u043b\u044c\u0437\u0430 \u043e\u0442 \u043d\u0438\u0445 \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u2014 \u0432\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0432\u0441\u0435 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438, \u0447\u0442\u043e \u0438 \u0437\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u043e. \u041d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u2014 \u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u0410 \u043f\u0440\u0438\u043a\u0430\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u0442.\u043a. \u043a\u043e\u0434 \u043f\u0440\u043e\u0434\u0430\u043d \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0430. <br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0432\u0430\u0448 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0432 \u043b\u0438\u0431\u0443, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0435\u0435, \u0432 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0435 \u0441 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c, \u0447\u0442\u043e \u044e\u0437\u0430\u0435\u043c \u043b\u0438\u0431\u0443. \u041d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0438\u0431\u0443 \u043d\u0430 \u0432\u0441\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u0436\u0438\u0437\u043d\u0438 \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u0447\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u0435\u0441\u043b\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c, \u0430 \u0431\u0430\u0433\u0438 \u0443\u0436\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0438 \u043f\u043e\u0444\u0438\u043a\u0448\u0435\u043d\u044b. \u0422\u0430\u043a \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0438 \u0441\u043e \u043c\u043d\u043e\u0439. <\/p>\n<p>  \u042f \u043d\u0435 \u0442\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a \u0440\u0435\u0444\u043b\u0435\u043a\u0448\u0435\u043d\u0430, \u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u043b\u0438\u0431\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u0435\u043d\u0435\u0440\u044f\u0442 \u043a\u043e\u0434. \u0415\u0433\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0442\u0432\u043e\u0440\u0438\u0442\u0441\u044f. <br \/>  \u041a\u043e \u0432\u0441\u0435\u043c\u0443 \u043f\u0440\u043e\u0447\u0435\u043c\u0443 \u043c\u043d\u0435 \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438. \u0412\u0441\u044f \u043c\u043e\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443. \u041d\u0430\u0447\u043d\u0435\u043c\u2026<\/p>\n<h4>Groundy<\/h4>\n<p>  \u0412\u043e\u0442 \u044d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043a\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 command service.   <\/p>\n<ul>\n<li>\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u043a\u0435\u043d\u0441\u0435\u043b\u0438\u0442\u044c<\/li>\n<li>\u041b\u044e\u0431\u0438\u0442\u0435\u043b\u0438 AsyncTask&#8217;\u043e\u0432 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u044f\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430<\/li>\n<li>\u0415\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043a\u0430\u043b\u0431\u0435\u043a\u043e\u0432 \u0438 \u043e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u044b \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438<\/li>\n<\/ul>\n<p>  \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043b\u0431\u0435\u043a. <br \/>  \u0425\u043e\u0442\u044f \u043a\u0430\u043b\u0431\u0435\u043a\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0439 object \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e. \u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443 \u043f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043d\u0430\u043c.<br \/>  \u0418 \u043e\u0433\u0440\u0430\u0434\u0438\u0442 \u0432\u0430\u0441 \u043e\u0442 \u0441\u043e\u0431\u043b\u0430\u0437\u043d\u0430 \u043d\u0430\u0432\u0435\u0441\u0438\u0442\u044c \u043a\u0430\u043b\u0431\u0435\u043a\u0438 \u043d\u0430 \u043f\u0430\u0431\u043b\u0438\u043a \u043c\u0435\u0442\u043e\u0434\u044b \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043d\u0430\u0440\u0443\u0448\u0438\u0432 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0442\u043e\u043b\u043f\u043e\u0432 \u041e\u041e\u041f \u2014 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044e \ud83d\ude42<br \/>  \u041f\u043e \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c \u0438 \u043d\u0443\u0436\u0435\u043d \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u0430. <\/p>\n<pre><code class=\"java\">public class LoginCommand extends GroundyTask{ \tprivate static final String ARG_PASSWORD = &quot;arg_password&quot;; \tprivate static final String ARG_USER = &quot;arg_username&quot;;    \t@Override \tprotected TaskResult doInBackground() { \t\tString userName = getStringArg(ARG_USER); \t\tString password = getStringArg(ARG_PASSWORD); \t\t\/\/do something  \t\treturn succeeded(); \t} \t \tpublic static void start(Context context, BaseLoginCommandCallback callback, String login, String password) { \t\tGroundy.create(LoginCommand.class) \t\t\t\t.arg(ARG_USER, login) \t\t\t\t.arg(ARG_PASSWORD, password) \t\t\t\t.callback(callback) \t\t\t\t.queueUsing(context); \t} \t \tpublic static abstract class BaseLoginCommandCallback{  \t\t@OnSuccess(LoginCommand.class) \t\tpublic void handleSuccess(){ \t\t\tonLoginSuccess(); \t\t}  \t\t@OnFailure(LoginCommand.class) \t\tpublic void handleFailure(){ \t\t\tonLoginError(); \t\t}  \t\tprotected abstract void onLoginSuccess();  \t\tprotected abstract void onLoginError(); \t} } <\/code><\/pre>\n<h4>Retrofit<\/h4>\n<p>  \u041e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 REST \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u0430\u043a \u0445\u043e\u0440\u043e\u0448\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c. \u041a\u043e\u0434 \u043f\u0440\u0430\u0432\u0434\u0430 \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0442, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442.<br \/>  \u042f \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 Spring Android, \u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0430\u0442 \u043e\u043d.<\/p>\n<pre><code class=\"java\">public interface ServicesFootballua {  \tString API_URL = &quot;http:\/\/services.football.ua\/api&quot;; \t \t@GET(&quot;\/News\/GetArchive&quot;) \tNewsArchive getNewsArchive(@Query(&quot;pageId&quot;) long pageId, \t\t\t\t\t\t\t @Query(&quot;count&quot;) long count, \t\t\t\t\t\t\t @Query(&quot;datePublish&quot;) String date); }  <\/code><\/pre>\n<p>  \u043d\u0443 \u0438 \u0432\u043e\u0442 \u0442\u0430\u043a \u044e\u0437\u0430\u0435\u043c <\/p>\n<pre><code class=\"java\">\tprivate static ServicesFootballua API = new RestAdapter.Builder() \t\t\t\t\t\t\t\t\t\t.setServer(ServicesFootballua.API_URL) \t\t\t\t\t\t\t\t\t\t.build() \t\t\t\t\t\t\t\t\t\t.create(ServicesFootballua.class); ................................... \tarchive = API.getNewsArchive(PAGE_ID, COUNT, dateFormat.format(getTodayTime())); <\/code><\/pre>\n<p>  \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440, http \u043a\u043b\u0438\u0435\u043d\u0442 \u0438 \u043a\u0443\u0447\u0443 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e.<\/p>\n<h4>AnnotatedSQL<\/h4>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0438\u0442 \u0431\u0430\u0437\u0443 \u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043f\u043e \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c. <br \/>  \u041c\u043e\u044f \u043f\u043e\u0434\u0435\u043b\u043a\u0430, \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u0430\u0440\u0443 \u0441\u0442\u0430\u0442\u0435\u0439 \u0435\u0441\u0442\u044c \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u2014 <a href=\"http:\/\/habrahabr.ru\/post\/156283\/\">\u0442\u0443\u0442<\/a> \u0438 <a href=\"http:\/\/habrahabr.ru\/post\/166051\/\">\u0442\u0443\u0442<\/a>. <br \/>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0441 \u043f\u0438\u043d\u043a\u0430 <a href=\"http:\/\/habrahabr.ru\/users\/evilduck\/\" class=\"user_link\">evilduck<\/a> \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0441\u044f \u0432 maven central <\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 ORMLite, \u043d\u043e \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043e\u043d\u043e \u0434\u043b\u044f \u0430\u043d\u0434\u0440\u043e\u0438\u0434. \u041e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u044f\u043c \u0432\u0441\u0435 \u0438 \u0432\u0441\u044f. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 sql \u0438 \u0432\u044c\u0448\u043a\u0438 \u0440\u0435\u0448\u0430\u044e\u0442 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435. <\/p>\n<h4>Android Annotations<\/h4>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0434\u043e\u043b\u0433\u043e \u043f\u0440\u0438\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u0441\u044f \u043a \u044d\u0442\u043e\u0439 \u043b\u0438\u0431\u0435 \u0438 \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0448\u0438\u043b\u0441\u044f \u0437\u0430\u044e\u0437\u0430\u0442\u044c \u0435\u0435 \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435 \u2014 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u044e\u0437\u0430\u0442\u044c \u043d\u0430\u0433\u0435\u043d\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b.<br \/>  \u041c\u043e\u0449\u043d\u0435\u0439\u0448\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u044e\u0437\u0430\u0442\u044c <i>Background<\/i> \u043d\u0443 \u0438\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0432\u0443. <br \/>  \u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043b\u044e\u0441 \u2014 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u044b\u043f\u0438\u043b\u0438\u0442\u044c. <\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 AQuery \u0438 Dagger, \u043d\u043e \u0438\u043c\u0445\u043e Android Annotations \u2014 \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e. <br \/>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043c\u0438\u043d\u0443\u0441 \u2014 \u0438\u043d\u043e\u0433\u0434\u0430 \u0442\u044f\u0436\u0435\u043b\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443 \u00ab\u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f?\u00bb. <\/p>\n<p>  \u041e \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0430 \u043e\u0444\u0444 \u0441\u0430\u0439\u0442\u0435. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u0445\u043e\u0447\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0438\u0448\u0443 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430. \u042d\u0442\u043e \u0438\u0437\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043d\u0438\u043a\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u044e\u0437\u0430\u0435\u043c \u043c\u044b \u043d\u0430\u0433\u0435\u043d\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0438\u043b\u0438 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 <i>AlertDialogFragment<\/i> \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043c\u0435\u0442\u043e\u0434   <\/p>\n<pre><code class=\"java\">\tpublic static void show(FragmentActivity activity,  \t\t\t\t\t\tDialogType type, int titleId, String msg, int positiveTitleId, \t\t\t\t\t\tOnDialogClickListener positiveListener) { \t\tDialogUtil.show(activity, DIALOG_NAME, \t\t\tAlertDialogFragment_.builder() \t\t\t.titleId(titleId) \t\t\t.errorMsg(msg) \t\t\t.positiveButtonTitleId(positiveTitleId) \t\t\t.dialogType(type).build() \t\t).setOnClickListener(positiveListener); \t} <\/code><\/pre>\n<p>  \u0430 \u0432\u0435\u0437\u0434\u0435 \u0432 \u043a\u043e\u0434\u0435 \u0432\u044b\u0437\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0442\u0438\u043f\u0430   <\/p>\n<pre><code class=\"java\">AlertDialogFragment.show(BaseActivity.this,                     DialogType.CONFIRM,                     R.string.some_title,                     getString(R.string.some_message),                     R.string.btn_edit,                     new OnDialogClickListener() {...............} <\/code><\/pre>\n<p>  \u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0438 <i>AlertDialogFragment_<\/i><\/p>\n<h4>Android db-commons<\/h4>\n<p>  \u0421\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043d\u0430\u0448\u0435\u043b \u044d\u0442\u0443 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043b\u0438\u0431\u0443. \u0422.\u043a. \u043c\u044b \u044e\u0437\u0430\u0435\u043c \u043b\u043e\u0430\u0434\u0435\u0440\u044b \u0432\u0435\u0437\u0434\u0435 \u0438 \u0432\u0441\u044e\u0434\u0443, \u043e\u0431\u044b\u0447\u043d\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u044d\u0442\u043e Cursor. \u0412\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u044e\u0437\u0430\u0442\u044c CursorAdapter \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0434\u043e.<\/p>\n<p>  \u041d\u043e \u0432\u043e\u0442 \u044d\u0442\u0430 \u043b\u0438\u0431\u043a\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u043c \u044e\u0437\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a(List), \u043d\u043e \u043d\u0430\u0434 \u043a\u0443\u0440\u0441\u043e\u0440\u043e\u043c, \u0430 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0432\u0441\u0435\u043c\u0438 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 ArrayAdapter. <br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u043c\u0431\u0438\u043e\u0437 \u2014 \u0432\u044b \u043a\u0430\u043a \u0431\u044b \u0432\u0438\u0434\u0438\u0442\u0435 List \u0438 \u044e\u0437\u0430\u0435\u0442\u0435 ArrayAdapter, \u043d\u043e \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u044d\u0442\u043e \u043a\u0443\u0440\u0441\u043e\u0440 \u0438 \u043a\u0443\u0440\u0441\u043e\u0440 \u0430\u0434\u0430\u043f\u0442\u0435\u0440. \u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u00ab\u0443\u043b\u0438\u0447\u043d\u0430\u044f \u043c\u0430\u0433\u0438\u044f\u00bb \ud83d\ude42<br \/>  \u0420\u0435\u0431\u044f\u0442\u0430 \u043d\u0435 \u043f\u043e\u043b\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u0441\u0435\u0431\u0435 LazyList \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u0435\u0448\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438, \u0432\u0441\u0435 \u043a\u0430\u043a \u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u2014 \u0432\u043d\u0443\u0442\u0440\u0438 LruCache.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c List \u0432\u043c\u0435\u0441\u0442\u043e Cursor \u043d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e(<i>transform<\/i>) \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043b\u043e\u0430\u0434\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0435\u0440\u043d\u0435\u0442 \u043d\u0435 Cursor, \u0430 List<\/p>\n<pre><code class=\"java\">return CursorLoaderBuilder.forUri(URI_ITEMS)                 .projection(ItemConverter.PROJECTION)                 .where(ItemTable.ACTIVE_STATUS + &quot; = ?&quot;, 1)                 .where(ItemTable.DESCRIPTION + &quot; like ?&quot;, &quot;%&quot; + searchText + &quot;%&quot;)                 .transform(new ItemConverter()).build(getActivity()); <\/code><\/pre>\n<p>  \u041d\u043e \u043a\u0430\u043a \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440 \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443 \u0440\u0435\u0431\u044f\u0442 \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <i>wrap<\/i>  <\/p>\n<pre><code class=\"java\">public Loader&lt;Integer&gt; onCreateLoader(int i, Bundle bundle) { \treturn CursorLoaderBuilder \t\t\t.forUri(ITEMS_URI) \t\t\t.projection(&quot;count(&quot; + ItemTable.GUID + &quot;)&quot;) \t\t\t.where(ItemTable.ACTIVE_STATUS + &quot; = ?&quot;, 1) \t\t\t.where(ItemTable.STOCK_TRACKING + &quot; = ?&quot;, 1) \t\t\t.where(ItemTable.TMP_AVAILABLE_QTY + &quot; &lt;= &quot; + ItemTable.RECOMMENDED_QTY) \t\t\t.wrap(new Function&lt;Cursor, Integer&gt;() { \t\t\t\t@Override \t\t\t\tpublic Integer apply(Cursor c) { \t\t\t\t\tif (c.moveToFirst()) { \t\t\t\t\t\treturn c.getInt(0); \t\t\t\t\t} \t\t\t\t\treturn 0; \t\t\t\t} \t\t\t}).build(DashboardActivity.this); } <\/code><\/pre>\n<p>  \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431. <br \/>  \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043a\u0440\u0443\u0447\u0435.<br \/>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432 \u043c\u0435\u0442\u043e\u0434 wrap \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435. \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0449\u0435 \u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0411\u0414 \u0437\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. <br \/>  \u041a\u0430\u043a \u044f \u0438 \u0441\u043a\u0430\u0437\u0430\u043b \u044d\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e. <\/p>\n<h4>\u041e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435<\/h4>\n<p>  \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e UI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0435\u0449\u0435 \u043a\u0443\u0447\u043a\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043b\u0438\u0431(\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b), \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430 \ud83d\ude42<\/p>\n<p>  \u041d\u0443 \u0438 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u0431\u0438\u043b\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u0433\u0440\u0435\u0439\u0434\u043b, \u0447\u0442\u043e \u0431\u044b apt \u0437\u0430\u0432\u0435\u043b\u0441\u044f(<i>\u0434\u0430-\u0434\u0430 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043f\u0435\u0446 \u043f\u043b\u0430\u0433\u0438\u043d, \u043d\u043e \u0435\u0433\u043e \u0435\u0449\u0435 \u043d\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b<\/i>). <br \/>  \u0410\u0445, \u0434\u0430 \u2014 \u043a\u0430\u0447\u0430\u0435\u043c <b>android-db-commons-0.1.6.jar<\/b> \u0432 \u043f\u0430\u043f\u043a\u0443 libs<\/p>\n<pre><code>ext.androidAnnotationsVersion = '2.7.1';  configurations {     apt }  dependencies {     compile fileTree(dir: 'libs', include: '*.jar')      compile 'com.google.guava:guava:13.0.1'      compile 'com.telly:groundy:1.3'     apt 'com.telly:groundy-compiler:1.3'          apt &quot;com.googlecode.androidannotations:androidannotations:${androidAnnotationsVersion}&quot;     compile &quot;com.googlecode.androidannotations:androidannotations-api:${androidAnnotationsVersion}&quot;      compile 'com.github.hamsterksu:android-annotatedsql-api:1.7.8'     apt 'com.github.hamsterksu:android-annotatedsql-processor:1.7.8' }  android.applicationVariants.all { variant -&gt; \taptOutput = file(&quot;${project.buildDir}\/source\/apt_generated\/${variant.dirName}&quot;) \t \tvariant.javaCompile.doFirst { \t\taptOutput.mkdirs() \t\tvariant.javaCompile.options.compilerArgs += [ \t\t\t'-processorpath', configurations.apt.getAsPath(), \t\t\t'-processor', 'com.annotatedsql.processor.provider.ProviderProcessor,com.annotatedsql.processor.sql.SQLProcessor,com.googlecode.androidannotations.AndroidAnnotationProcessor,com.telly.groundy.GroundyCodeGen', \t\t\t'-AandroidManifestFile=' + variant.processResources.manifestFile, \t\t\t'-s', aptOutput \t\t] \t} } <\/code><\/pre>\n<p>  \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435    \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\/208504\/\"> http:\/\/habrahabr.ru\/post\/208504\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412\u043e\u0442 \u043d\u0430\u0434\u0443\u043c\u0430\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u0437\u043e\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0435\u0433\u043a\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 Android. <br \/>  \u0421\u043f\u0438\u0441\u043e\u043a \u0432\u044b\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439:  <\/p>\n<ul>\n<li><a href=\"http:\/\/androidannotations.org\">Android Annotations<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/telly\/groundy\">Groundy<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/square\/retrofit\">Retrofit<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/hamsterksu\/Android-AnnotatedSQL\">AnnotatedSQL<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/futuresimple\/android-db-commons\">Android db-commons<\/a><\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/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-208504","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/208504","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=208504"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/208504\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}