{"id":2442,"date":"2013-10-09T22:24:01","date_gmt":"2013-11-29T16:16:23","guid":{"rendered":"https:\/\/programresource.net\/?p=2442"},"modified":"2013-11-30T01:16:23","modified_gmt":"2013-11-29T16:16:23","slug":"installing-sony-smartwatch2-sdk-and-building-sample-apps","status":"publish","type":"post","link":"https:\/\/programresource.net\/en\/2013\/10\/09\/2442.html","title":{"rendered":"Installing Sony SmartWatch2 SDK and Building Sample Apps"},"content":{"rendered":"<p>SDK is installed via Android SDK Manager. Detailed steps can be found in page below.<\/p>\n<p><a href=\"http:\/\/developer.sonymobile.com\/knowledge-base\/sony-add-on-sdk\/install-the-sony-add-on-sdk\/\">http:\/\/developer.sonymobile.com\/knowledge-base\/sony-add-on-sdk\/install-the-sony-add-on-sdk\/<\/a><\/p>\n<p>Add<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">http:\/\/dl-developer.sonymobile.com\/sdk_manager\/Sony-Add-on-SDK.xml<\/pre>\n<p>to path, and under Android 4.1.2, install &#8220;Sony Add-on SDK 2.0&#8221; (and\/or later version).<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/sdkmanager.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2429 aligncenter\" alt=\"sdkmanager\" src=\"https:\/\/programresource.net\/images\/2013\/10\/sdkmanager-268x300.png\" width=\"268\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/sdkmanager-268x300.png 268w, https:\/\/programresource.net\/images\/2013\/10\/sdkmanager-918x1024.png 918w, https:\/\/programresource.net\/images\/2013\/10\/sdkmanager.png 1092w\" sizes=\"(max-width: 268px) 100vw, 268px\" \/><\/a><\/p>\n<p>After installing, open File -&gt; New -&gt; Project, and select Android Sample Project.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/newproject.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2427 aligncenter\" alt=\"newproject\" src=\"https:\/\/programresource.net\/images\/2013\/10\/newproject-300x59.png\" width=\"300\" height=\"59\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/newproject-300x59.png 300w, https:\/\/programresource.net\/images\/2013\/10\/newproject.png 639w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/sampleproject.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2428 aligncenter\" alt=\"sampleproject\" src=\"https:\/\/programresource.net\/images\/2013\/10\/sampleproject-300x285.png\" width=\"300\" height=\"285\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/sampleproject-300x285.png 300w, https:\/\/programresource.net\/images\/2013\/10\/sampleproject.png 525w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Select SmartExtensionAPI.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/smartextensionapi.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2432 aligncenter\" alt=\"smartextensionapi\" src=\"https:\/\/programresource.net\/images\/2013\/10\/smartextensionapi-230x300.png\" width=\"230\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/smartextensionapi-230x300.png 230w, https:\/\/programresource.net\/images\/2013\/10\/smartextensionapi.png 525w\" sizes=\"(max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<p>And same for SmartExtensionUtils.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/smartextensionutils.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2433 aligncenter\" alt=\"smartextensionutils\" src=\"https:\/\/programresource.net\/images\/2013\/10\/smartextensionutils-230x300.png\" width=\"230\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/smartextensionutils-230x300.png 230w, https:\/\/programresource.net\/images\/2013\/10\/smartextensionutils.png 525w\" sizes=\"(max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<p>Open project property for SmartExtensionAPI, and check Is Library.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/islibrary.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2424 aligncenter\" alt=\"islibrary\" src=\"https:\/\/programresource.net\/images\/2013\/10\/islibrary-290x300.png\" width=\"290\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/islibrary-290x300.png 290w, https:\/\/programresource.net\/images\/2013\/10\/islibrary.png 810w\" sizes=\"(max-width: 290px) 100vw, 290px\" \/><\/a><\/p>\n<p>Open project property for SmartExtensionUtils and check Is Library, and click &#8220;Add&#8221; button and add SmartExtensionAPI.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/islibrary2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2425 aligncenter\" alt=\"islibrary2\" src=\"https:\/\/programresource.net\/images\/2013\/10\/islibrary2-223x300.png\" width=\"223\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/islibrary2-223x300.png 223w, https:\/\/programresource.net\/images\/2013\/10\/islibrary2.png 635w\" sizes=\"(max-width: 223px) 100vw, 223px\" \/><\/a><\/p>\n<p>Then, select Sample project you want to try.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/sdksample.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2430 aligncenter\" alt=\"sdksample\" src=\"https:\/\/programresource.net\/images\/2013\/10\/sdksample-230x300.png\" width=\"230\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/sdksample-230x300.png 230w, https:\/\/programresource.net\/images\/2013\/10\/sdksample.png 525w\" sizes=\"(max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<p>In project property for sample project you selected, click &#8220;Add&#8221; button under Library and add SmartExtensionAPI and SmartExtensionUtils.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/sdksampleconfig.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2431 aligncenter\" alt=\"sdksampleconfig\" src=\"https:\/\/programresource.net\/images\/2013\/10\/sdksampleconfig-223x300.png\" width=\"223\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/sdksampleconfig-223x300.png 223w, https:\/\/programresource.net\/images\/2013\/10\/sdksampleconfig.png 635w\" sizes=\"(max-width: 223px) 100vw, 223px\" \/><\/a><\/p>\n<p>Now, you are ready to build project, install to Android device as usual. You should see sample SmartWatch extension installed and listed in SmartConnect.<\/p>\n<p>If you want to try\u00a0EightPuzzleExtension or MusicExtension, download file first.<\/p>\n<p><a href=\"http:\/\/developer.sonymobile.com\/2012\/05\/07\/music-player-and-8-game-extensions-for-smartwatch-now-available-as-open-source\/\">http:\/\/developer.sonymobile.com\/2012\/05\/07\/music-player-and-8-game-extensions-for-smartwatch-now-available-as-open-source\/<\/a><\/p>\n<p><a href=\"http:\/\/developer.sonymobile.com\/downloads\/code-example-module\/music-player-and-8-game-extensions-for-smartwatch-open-source\/\">http:\/\/developer.sonymobile.com\/downloads\/code-example-module\/music-player-and-8-game-extensions-for-smartwatch-open-source\/<\/a><\/p>\n<p>After downloading, copy 2 folders to sample folder under Sony SDK.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/musicandgame.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2426 aligncenter\" alt=\"musicandgame\" src=\"https:\/\/programresource.net\/images\/2013\/10\/musicandgame-300x113.png\" width=\"300\" height=\"113\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/musicandgame-300x113.png 300w, https:\/\/programresource.net\/images\/2013\/10\/musicandgame-1024x387.png 1024w, https:\/\/programresource.net\/images\/2013\/10\/musicandgame.png 1405w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After copying, you can import sample project with same steps as above.<\/p>\n<p><a href=\"https:\/\/programresource.net\/images\/2013\/10\/sonysdksample2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2435 aligncenter\" alt=\"sonysdksample2\" src=\"https:\/\/programresource.net\/images\/2013\/10\/sonysdksample2-230x300.png\" width=\"230\" height=\"300\" srcset=\"https:\/\/programresource.net\/images\/2013\/10\/sonysdksample2-230x300.png 230w, https:\/\/programresource.net\/images\/2013\/10\/sonysdksample2.png 525w\" sizes=\"(max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<p>Configure Library and build, and you should be ready to try.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SDK is installed via Android SDK Manager. Detailed steps can be found in page below. http:\/\/developer.sonymobile.com\/knowledge-base\/sony-add-on-sdk\/install-the-sony-add-on-sdk\/ Add to path, and under Android 4.1.2, install &#8220;Sony Add-on SDK 2.0&#8221; (and\/or later version). After installing, open File -&gt; New -&gt; Project, and select Android Sample Project. Select SmartExtensionAPI. And same for SmartExtensionUtils. Open project property for SmartExtensionAPI, and check Is Library. Open project property for SmartExtensionUtils and check Is Library, and click &#8220;Add&#8221; button and add SmartExtensionAPI. Then, select Sample project you want to try. In project property for sample project you selected, click &#8220;Add&#8221; button under Library and add SmartExtensionAPI and SmartExtensionUtils. Now, you are ready to build project, install to &#8230;<\/p>\n","protected":false},"author":2,"featured_media":2431,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[330],"tags":[533,599,598,597,595,594,596],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/programresource.net\/images\/2013\/10\/sdksampleconfig.png","jetpack_shortlink":"https:\/\/wp.me\/p3pJyQ-Do","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2442"}],"collection":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/comments?post=2442"}],"version-history":[{"count":1,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2442\/revisions"}],"predecessor-version":[{"id":2443,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/2442\/revisions\/2443"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/media\/2431"}],"wp:attachment":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/media?parent=2442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/categories?post=2442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/tags?post=2442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}