{"action":"created","comment":{"url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/comments/31191427","id":31191427,"diff_hunk":"@@ -110,15 +101,22 @@ public void onClick(View v) {\n \t\t\t\t\tString value = valueText.getText().toString();\n \t\t\t\t\tif (key == null || key.trim().equals(\"\")) {\n \t\t\t\t\t\tkeyText.requestFocus();\n-\t\t\t\t\t\tToast.makeText(context, \"Key is empty. Please enter a value\", Toast.LENGTH_LONG).show();\n+\t\t\t\t\t\tToast.makeText(BlueKaiTab.this, \"Key is empty. Please enter a value\", Toast.LENGTH_LONG).show();\n \t\t\t\t\t} else if (value == null || value.trim().equals(\"\")) {\n \t\t\t\t\t\tvalueText.requestFocus();\n-\t\t\t\t\t\tToast.makeText(context, \"Value is empty. Please enter a value\", Toast.LENGTH_LONG).show();\n+\t\t\t\t\t\tToast.makeText(BlueKaiTab.this, \"Value is empty. Please enter a value\", Toast.LENGTH_LONG).show();\n \t\t\t\t\t} else {\n-\t\t\t\t\t\tbk.put(key, value);\n+\t\t\t\t\t\tif (sync) {\n+\t\t\t\t\t\t\tString response = bk.putSync(key, value);\n+\t\t\t\t\t\t\tToast.makeText(BlueKaiTab.this, response, Toast.LENGTH_SHORT).show();\n+\t\t\t\t\t\t} else {\n+\t\t\t\t\t\t\tbk.put(key, value);\n+\t\t\t\t\t\t}","path":"sample/src/com/bluekai/sampleapp/BlueKaiTab.java","position":126,"original_position":126,"commit_id":"fb8bb1fbb2545554eaf3b3e1e71a40582c2bb069","original_commit_id":"4bf54bfdd47fc4c45b03527411cd6499e876bfc7","user":{"login":"antonbk","id":4912269,"avatar_url":"https://avatars.githubusercontent.com/u/4912269?v=3","gravatar_id":"","url":"https://api.github.com/users/antonbk","html_url":"https://github.com/antonbk","followers_url":"https://api.github.com/users/antonbk/followers","following_url":"https://api.github.com/users/antonbk/following{/other_user}","gists_url":"https://api.github.com/users/antonbk/gists{/gist_id}","starred_url":"https://api.github.com/users/antonbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonbk/subscriptions","organizations_url":"https://api.github.com/users/antonbk/orgs","repos_url":"https://api.github.com/users/antonbk/repos","events_url":"https://api.github.com/users/antonbk/events{/privacy}","received_events_url":"https://api.github.com/users/antonbk/received_events","type":"User","site_admin":false},"body":"ok, if this helps to navigate quicker.","created_at":"2015-05-27T23:35:19Z","updated_at":"2015-05-27T23:35:19Z","html_url":"https://github.com/BlueKai/bluekai-android-sdk/pull/5#discussion_r31191427","pull_request_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/comments/31191427"},"html":{"href":"https://github.com/BlueKai/bluekai-android-sdk/pull/5#discussion_r31191427"},"pull_request":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5","id":35260167,"html_url":"https://github.com/BlueKai/bluekai-android-sdk/pull/5","diff_url":"https://github.com/BlueKai/bluekai-android-sdk/pull/5.diff","patch_url":"https://github.com/BlueKai/bluekai-android-sdk/pull/5.patch","issue_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/5","number":5,"state":"open","locked":false,"title":"Feature/bk sdk without web view","user":{"login":"mouli-bluekai","id":9201041,"avatar_url":"https://avatars.githubusercontent.com/u/9201041?v=3","gravatar_id":"","url":"https://api.github.com/users/mouli-bluekai","html_url":"https://github.com/mouli-bluekai","followers_url":"https://api.github.com/users/mouli-bluekai/followers","following_url":"https://api.github.com/users/mouli-bluekai/following{/other_user}","gists_url":"https://api.github.com/users/mouli-bluekai/gists{/gist_id}","starred_url":"https://api.github.com/users/mouli-bluekai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mouli-bluekai/subscriptions","organizations_url":"https://api.github.com/users/mouli-bluekai/orgs","repos_url":"https://api.github.com/users/mouli-bluekai/repos","events_url":"https://api.github.com/users/mouli-bluekai/events{/privacy}","received_events_url":"https://api.github.com/users/mouli-bluekai/received_events","type":"User","site_admin":false},"body":"Changes to have the option to make calls directly to tags server. \r\n\r\nRefactored the code.\r\nHave refactored the sample app to use Android Preferences instead of Database. \r\nAdded check in resume(), so that it does not create a web view every time (if WebViews are getting used)\r\nRemoved dependency on android support v4 jar, which was just getting bundled for displaying alert dialog for sandbox url with dev mode on when using WebView.\r\n\r\nCR: @antonbk @burkaygur ","created_at":"2015-05-12T19:12:46Z","updated_at":"2015-05-27T23:35:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71270084233508dfc1a5f1da93b612a75c79d880","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5/commits","review_comments_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5/comments","review_comment_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/5/comments","statuses_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/statuses/fb8bb1fbb2545554eaf3b3e1e71a40582c2bb069","head":{"label":"BlueKai:feature/bk_sdk_without_web_view","ref":"feature/bk_sdk_without_web_view","sha":"fb8bb1fbb2545554eaf3b3e1e71a40582c2bb069","user":{"login":"BlueKai","id":889473,"avatar_url":"https://avatars.githubusercontent.com/u/889473?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueKai","html_url":"https://github.com/BlueKai","followers_url":"https://api.github.com/users/BlueKai/followers","following_url":"https://api.github.com/users/BlueKai/following{/other_user}","gists_url":"https://api.github.com/users/BlueKai/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueKai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueKai/subscriptions","organizations_url":"https://api.github.com/users/BlueKai/orgs","repos_url":"https://api.github.com/users/BlueKai/repos","events_url":"https://api.github.com/users/BlueKai/events{/privacy}","received_events_url":"https://api.github.com/users/BlueKai/received_events","type":"Organization","site_admin":false},"repo":{"id":12249282,"name":"bluekai-android-sdk","full_name":"BlueKai/bluekai-android-sdk","owner":{"login":"BlueKai","id":889473,"avatar_url":"https://avatars.githubusercontent.com/u/889473?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueKai","html_url":"https://github.com/BlueKai","followers_url":"https://api.github.com/users/BlueKai/followers","following_url":"https://api.github.com/users/BlueKai/following{/other_user}","gists_url":"https://api.github.com/users/BlueKai/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueKai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueKai/subscriptions","organizations_url":"https://api.github.com/users/BlueKai/orgs","repos_url":"https://api.github.com/users/BlueKai/repos","events_url":"https://api.github.com/users/BlueKai/events{/privacy}","received_events_url":"https://api.github.com/users/BlueKai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BlueKai/bluekai-android-sdk","description":"BlueKai Android SDK","fork":false,"url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk","forks_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/forks","keys_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/teams","hooks_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/events","assignees_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/tags","blobs_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/languages","stargazers_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/subscription","commits_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/merges","archive_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/downloads","issues_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/releases{/id}","created_at":"2013-08-20T17:27:26Z","updated_at":"2014-12-11T00:17:06Z","pushed_at":"2015-05-27T23:25:50Z","git_url":"git://github.com/BlueKai/bluekai-android-sdk.git","ssh_url":"git@github.com:BlueKai/bluekai-android-sdk.git","clone_url":"https://github.com/BlueKai/bluekai-android-sdk.git","svn_url":"https://github.com/BlueKai/bluekai-android-sdk","homepage":"http://www.bluekai.com/","size":1050,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"BlueKai:master","ref":"master","sha":"d977816e304dd1b6f65ad4004b0c1fbcf1a1ab2d","user":{"login":"BlueKai","id":889473,"avatar_url":"https://avatars.githubusercontent.com/u/889473?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueKai","html_url":"https://github.com/BlueKai","followers_url":"https://api.github.com/users/BlueKai/followers","following_url":"https://api.github.com/users/BlueKai/following{/other_user}","gists_url":"https://api.github.com/users/BlueKai/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueKai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueKai/subscriptions","organizations_url":"https://api.github.com/users/BlueKai/orgs","repos_url":"https://api.github.com/users/BlueKai/repos","events_url":"https://api.github.com/users/BlueKai/events{/privacy}","received_events_url":"https://api.github.com/users/BlueKai/received_events","type":"Organization","site_admin":false},"repo":{"id":12249282,"name":"bluekai-android-sdk","full_name":"BlueKai/bluekai-android-sdk","owner":{"login":"BlueKai","id":889473,"avatar_url":"https://avatars.githubusercontent.com/u/889473?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueKai","html_url":"https://github.com/BlueKai","followers_url":"https://api.github.com/users/BlueKai/followers","following_url":"https://api.github.com/users/BlueKai/following{/other_user}","gists_url":"https://api.github.com/users/BlueKai/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueKai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueKai/subscriptions","organizations_url":"https://api.github.com/users/BlueKai/orgs","repos_url":"https://api.github.com/users/BlueKai/repos","events_url":"https://api.github.com/users/BlueKai/events{/privacy}","received_events_url":"https://api.github.com/users/BlueKai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BlueKai/bluekai-android-sdk","description":"BlueKai Android SDK","fork":false,"url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk","forks_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/forks","keys_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/teams","hooks_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/hooks","issue_events_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/events","assignees_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/tags","blobs_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/languages","stargazers_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/stargazers","contributors_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/contributors","subscribers_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/subscribers","subscription_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/subscription","commits_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/merges","archive_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/downloads","issues_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/labels{/name}","releases_url":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/releases{/id}","created_at":"2013-08-20T17:27:26Z","updated_at":"2014-12-11T00:17:06Z","pushed_at":"2015-05-27T23:25:50Z","git_url":"git://github.com/BlueKai/bluekai-android-sdk.git","ssh_url":"git@github.com:BlueKai/bluekai-android-sdk.git","clone_url":"https://github.com/BlueKai/bluekai-android-sdk.git","svn_url":"https://github.com/BlueKai/bluekai-android-sdk","homepage":"http://www.bluekai.com/","size":1050,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5"},"html":{"href":"https://github.com/BlueKai/bluekai-android-sdk/pull/5"},"issue":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/5"},"comments":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/BlueKai/bluekai-android-sdk/statuses/fb8bb1fbb2545554eaf3b3e1e71a40582c2bb069"}}}}