{"action":"created","comment":{"url":"https://api.github.com/repos/spark/spark-setup-android/pulls/comments/69903584","id":69903584,"diff_hunk":"@@ -1,29 +1,67 @@\n package io.particle.devicesetup.exampleapp;\n \n+import android.content.Context;\n+import android.content.Intent;\n import android.os.Bundle;\n import android.support.v7.app.AppCompatActivity;\n import android.view.View;\n+import android.widget.TextView;\n+\n+import java.util.Date;\n \n import io.particle.android.sdk.devicesetup.ParticleDeviceSetupLibrary;\n+import io.particle.android.sdk.devicesetup.SetupCompleteIntentBuilder;\n+import io.particle.android.sdk.devicesetup.SetupResult;\n import io.particle.android.sdk.utils.ui.Ui;\n \n public class MainActivity extends AppCompatActivity {\n+    private final static String EXTRA_SETUP_LAUNCHED_TIME = \"io.particle.devicesetup.exampleapp.SETUP_LAUNCHED_TIME\";\n \n     @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_main);\n-        ParticleDeviceSetupLibrary.init(this.getApplicationContext(), MainActivity.class);\n+        ParticleDeviceSetupLibrary.init(this.getApplicationContext());\n \n         Ui.findView(this, R.id.start_setup_button).setOnClickListener(new View.OnClickListener() {\n             @Override\n             public void onClick(View view) {\n                 invokeDeviceSetup();\n             }\n         });\n+\n+        Ui.findView(this, R.id.start_setup_custom_intent_button).setOnClickListener(new View.OnClickListener() {","path":"exampleapp/src/main/java/io/particle/devicesetup/exampleapp/MainActivity.java","position":34,"original_position":34,"commit_id":"44825d1099980385299864352aabd58743648249","original_commit_id":"44825d1099980385299864352aabd58743648249","user":{"login":"jensck","id":671275,"avatar_url":"https://avatars.githubusercontent.com/u/671275?v=3","gravatar_id":"","url":"https://api.github.com/users/jensck","html_url":"https://github.com/jensck","followers_url":"https://api.github.com/users/jensck/followers","following_url":"https://api.github.com/users/jensck/following{/other_user}","gists_url":"https://api.github.com/users/jensck/gists{/gist_id}","starred_url":"https://api.github.com/users/jensck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jensck/subscriptions","organizations_url":"https://api.github.com/users/jensck/orgs","repos_url":"https://api.github.com/users/jensck/repos","events_url":"https://api.github.com/users/jensck/events{/privacy}","received_events_url":"https://api.github.com/users/jensck/received_events","type":"User","site_admin":false},"body":"nice, +1 for updating the demo app","created_at":"2016-07-07T13:16:14Z","updated_at":"2016-07-07T13:16:14Z","html_url":"https://github.com/spark/spark-setup-android/pull/21#discussion_r69903584","pull_request_url":"https://api.github.com/repos/spark/spark-setup-android/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/spark/spark-setup-android/pulls/comments/69903584"},"html":{"href":"https://github.com/spark/spark-setup-android/pull/21#discussion_r69903584"},"pull_request":{"href":"https://api.github.com/repos/spark/spark-setup-android/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/spark/spark-setup-android/pulls/21","id":76367683,"html_url":"https://github.com/spark/spark-setup-android/pull/21","diff_url":"https://github.com/spark/spark-setup-android/pull/21.diff","patch_url":"https://github.com/spark/spark-setup-android/pull/21.patch","issue_url":"https://api.github.com/repos/spark/spark-setup-android/issues/21","number":21,"state":"open","locked":false,"title":"Rework 'setup complete' handling to allow users to create a custom Intent.","user":{"login":"charleskorn","id":4017646,"avatar_url":"https://avatars.githubusercontent.com/u/4017646?v=3","gravatar_id":"","url":"https://api.github.com/users/charleskorn","html_url":"https://github.com/charleskorn","followers_url":"https://api.github.com/users/charleskorn/followers","following_url":"https://api.github.com/users/charleskorn/following{/other_user}","gists_url":"https://api.github.com/users/charleskorn/gists{/gist_id}","starred_url":"https://api.github.com/users/charleskorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleskorn/subscriptions","organizations_url":"https://api.github.com/users/charleskorn/orgs","repos_url":"https://api.github.com/users/charleskorn/repos","events_url":"https://api.github.com/users/charleskorn/events{/privacy}","received_events_url":"https://api.github.com/users/charleskorn/received_events","type":"User","site_admin":false},"body":"Notes:\r\n* I've marked a couple of methods in `ParticleDeviceSetupLibrary` as deprecated. These should be removed completely at some point in the future.\r\n* This change probably removes the need for the broadcast when device setup is complete, but I haven't removed it yet to avoid breaking users who currently rely on it.","created_at":"2016-07-06T01:39:32Z","updated_at":"2016-07-07T13:16:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e3f5d5bf9bfd5032c9b812b90a4348d8da660b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spark/spark-setup-android/pulls/21/commits","review_comments_url":"https://api.github.com/repos/spark/spark-setup-android/pulls/21/comments","review_comment_url":"https://api.github.com/repos/spark/spark-setup-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spark/spark-setup-android/issues/21/comments","statuses_url":"https://api.github.com/repos/spark/spark-setup-android/statuses/44825d1099980385299864352aabd58743648249","head":{"label":"charleskorn:master","ref":"master","sha":"44825d1099980385299864352aabd58743648249","user":{"login":"charleskorn","id":4017646,"avatar_url":"https://avatars.githubusercontent.com/u/4017646?v=3","gravatar_id":"","url":"https://api.github.com/users/charleskorn","html_url":"https://github.com/charleskorn","followers_url":"https://api.github.com/users/charleskorn/followers","following_url":"https://api.github.com/users/charleskorn/following{/other_user}","gists_url":"https://api.github.com/users/charleskorn/gists{/gist_id}","starred_url":"https://api.github.com/users/charleskorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleskorn/subscriptions","organizations_url":"https://api.github.com/users/charleskorn/orgs","repos_url":"https://api.github.com/users/charleskorn/repos","events_url":"https://api.github.com/users/charleskorn/events{/privacy}","received_events_url":"https://api.github.com/users/charleskorn/received_events","type":"User","site_admin":false},"repo":{"id":62676749,"name":"spark-setup-android","full_name":"charleskorn/spark-setup-android","owner":{"login":"charleskorn","id":4017646,"avatar_url":"https://avatars.githubusercontent.com/u/4017646?v=3","gravatar_id":"","url":"https://api.github.com/users/charleskorn","html_url":"https://github.com/charleskorn","followers_url":"https://api.github.com/users/charleskorn/followers","following_url":"https://api.github.com/users/charleskorn/following{/other_user}","gists_url":"https://api.github.com/users/charleskorn/gists{/gist_id}","starred_url":"https://api.github.com/users/charleskorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleskorn/subscriptions","organizations_url":"https://api.github.com/users/charleskorn/orgs","repos_url":"https://api.github.com/users/charleskorn/repos","events_url":"https://api.github.com/users/charleskorn/events{/privacy}","received_events_url":"https://api.github.com/users/charleskorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charleskorn/spark-setup-android","description":"Spark Device Setup library for Android","fork":true,"url":"https://api.github.com/repos/charleskorn/spark-setup-android","forks_url":"https://api.github.com/repos/charleskorn/spark-setup-android/forks","keys_url":"https://api.github.com/repos/charleskorn/spark-setup-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charleskorn/spark-setup-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charleskorn/spark-setup-android/teams","hooks_url":"https://api.github.com/repos/charleskorn/spark-setup-android/hooks","issue_events_url":"https://api.github.com/repos/charleskorn/spark-setup-android/issues/events{/number}","events_url":"https://api.github.com/repos/charleskorn/spark-setup-android/events","assignees_url":"https://api.github.com/repos/charleskorn/spark-setup-android/assignees{/user}","branches_url":"https://api.github.com/repos/charleskorn/spark-setup-android/branches{/branch}","tags_url":"https://api.github.com/repos/charleskorn/spark-setup-android/tags","blobs_url":"https://api.github.com/repos/charleskorn/spark-setup-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charleskorn/spark-setup-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charleskorn/spark-setup-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/charleskorn/spark-setup-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charleskorn/spark-setup-android/statuses/{sha}","languages_url":"https://api.github.com/repos/charleskorn/spark-setup-android/languages","stargazers_url":"https://api.github.com/repos/charleskorn/spark-setup-android/stargazers","contributors_url":"https://api.github.com/repos/charleskorn/spark-setup-android/contributors","subscribers_url":"https://api.github.com/repos/charleskorn/spark-setup-android/subscribers","subscription_url":"https://api.github.com/repos/charleskorn/spark-setup-android/subscription","commits_url":"https://api.github.com/repos/charleskorn/spark-setup-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/charleskorn/spark-setup-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/charleskorn/spark-setup-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/charleskorn/spark-setup-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/charleskorn/spark-setup-android/contents/{+path}","compare_url":"https://api.github.com/repos/charleskorn/spark-setup-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charleskorn/spark-setup-android/merges","archive_url":"https://api.github.com/repos/charleskorn/spark-setup-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charleskorn/spark-setup-android/downloads","issues_url":"https://api.github.com/repos/charleskorn/spark-setup-android/issues{/number}","pulls_url":"https://api.github.com/repos/charleskorn/spark-setup-android/pulls{/number}","milestones_url":"https://api.github.com/repos/charleskorn/spark-setup-android/milestones{/number}","notifications_url":"https://api.github.com/repos/charleskorn/spark-setup-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charleskorn/spark-setup-android/labels{/name}","releases_url":"https://api.github.com/repos/charleskorn/spark-setup-android/releases{/id}","deployments_url":"https://api.github.com/repos/charleskorn/spark-setup-android/deployments","created_at":"2016-07-05T23:43:18Z","updated_at":"2016-07-05T23:43:20Z","pushed_at":"2016-07-06T01:35:42Z","git_url":"git://github.com/charleskorn/spark-setup-android.git","ssh_url":"git@github.com:charleskorn/spark-setup-android.git","clone_url":"https://github.com/charleskorn/spark-setup-android.git","svn_url":"https://github.com/charleskorn/spark-setup-android","homepage":null,"size":1032,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spark:master","ref":"master","sha":"2bcadd3c2ad491d305ea7761b1a64bf4001f6dd2","user":{"login":"spark","id":2348966,"avatar_url":"https://avatars.githubusercontent.com/u/2348966?v=3","gravatar_id":"","url":"https://api.github.com/users/spark","html_url":"https://github.com/spark","followers_url":"https://api.github.com/users/spark/followers","following_url":"https://api.github.com/users/spark/following{/other_user}","gists_url":"https://api.github.com/users/spark/gists{/gist_id}","starred_url":"https://api.github.com/users/spark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spark/subscriptions","organizations_url":"https://api.github.com/users/spark/orgs","repos_url":"https://api.github.com/users/spark/repos","events_url":"https://api.github.com/users/spark/events{/privacy}","received_events_url":"https://api.github.com/users/spark/received_events","type":"Organization","site_admin":false},"repo":{"id":34549545,"name":"spark-setup-android","full_name":"spark/spark-setup-android","owner":{"login":"spark","id":2348966,"avatar_url":"https://avatars.githubusercontent.com/u/2348966?v=3","gravatar_id":"","url":"https://api.github.com/users/spark","html_url":"https://github.com/spark","followers_url":"https://api.github.com/users/spark/followers","following_url":"https://api.github.com/users/spark/following{/other_user}","gists_url":"https://api.github.com/users/spark/gists{/gist_id}","starred_url":"https://api.github.com/users/spark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spark/subscriptions","organizations_url":"https://api.github.com/users/spark/orgs","repos_url":"https://api.github.com/users/spark/repos","events_url":"https://api.github.com/users/spark/events{/privacy}","received_events_url":"https://api.github.com/users/spark/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spark/spark-setup-android","description":"Spark Device Setup library for Android","fork":false,"url":"https://api.github.com/repos/spark/spark-setup-android","forks_url":"https://api.github.com/repos/spark/spark-setup-android/forks","keys_url":"https://api.github.com/repos/spark/spark-setup-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spark/spark-setup-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spark/spark-setup-android/teams","hooks_url":"https://api.github.com/repos/spark/spark-setup-android/hooks","issue_events_url":"https://api.github.com/repos/spark/spark-setup-android/issues/events{/number}","events_url":"https://api.github.com/repos/spark/spark-setup-android/events","assignees_url":"https://api.github.com/repos/spark/spark-setup-android/assignees{/user}","branches_url":"https://api.github.com/repos/spark/spark-setup-android/branches{/branch}","tags_url":"https://api.github.com/repos/spark/spark-setup-android/tags","blobs_url":"https://api.github.com/repos/spark/spark-setup-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spark/spark-setup-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spark/spark-setup-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/spark/spark-setup-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spark/spark-setup-android/statuses/{sha}","languages_url":"https://api.github.com/repos/spark/spark-setup-android/languages","stargazers_url":"https://api.github.com/repos/spark/spark-setup-android/stargazers","contributors_url":"https://api.github.com/repos/spark/spark-setup-android/contributors","subscribers_url":"https://api.github.com/repos/spark/spark-setup-android/subscribers","subscription_url":"https://api.github.com/repos/spark/spark-setup-android/subscription","commits_url":"https://api.github.com/repos/spark/spark-setup-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/spark/spark-setup-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/spark/spark-setup-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/spark/spark-setup-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/spark/spark-setup-android/contents/{+path}","compare_url":"https://api.github.com/repos/spark/spark-setup-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spark/spark-setup-android/merges","archive_url":"https://api.github.com/repos/spark/spark-setup-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spark/spark-setup-android/downloads","issues_url":"https://api.github.com/repos/spark/spark-setup-android/issues{/number}","pulls_url":"https://api.github.com/repos/spark/spark-setup-android/pulls{/number}","milestones_url":"https://api.github.com/repos/spark/spark-setup-android/milestones{/number}","notifications_url":"https://api.github.com/repos/spark/spark-setup-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spark/spark-setup-android/labels{/name}","releases_url":"https://api.github.com/repos/spark/spark-setup-android/releases{/id}","deployments_url":"https://api.github.com/repos/spark/spark-setup-android/deployments","created_at":"2015-04-25T01:05:11Z","updated_at":"2016-06-13T15:02:44Z","pushed_at":"2016-07-06T01:39:32Z","git_url":"git://github.com/spark/spark-setup-android.git","ssh_url":"git@github.com:spark/spark-setup-android.git","clone_url":"https://github.com/spark/spark-setup-android.git","svn_url":"https://github.com/spark/spark-setup-android","homepage":null,"size":1022,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":2,"forks":18,"open_issues":2,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spark/spark-setup-android/pulls/21"},"html":{"href":"https://github.com/spark/spark-setup-android/pull/21"},"issue":{"href":"https://api.github.com/repos/spark/spark-setup-android/issues/21"},"comments":{"href":"https://api.github.com/repos/spark/spark-setup-android/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/spark/spark-setup-android/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/spark/spark-setup-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spark/spark-setup-android/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/spark/spark-setup-android/statuses/44825d1099980385299864352aabd58743648249"}}}}
{"actor":{"display_login":"jensck"}}