{"action":"created","comment":{"url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/comments/117724075","pull_request_review_id":39452633,"id":117724075,"diff_hunk":"@@ -45,22 +46,33 @@ public static void setMnumber(String mnumber) {\n         BaseActivity.mnumber = mnumber;\r\n     }\r\n \r\n-    public static String receiver=\"7248187747\";\r\n+    public static String receiver = \"7248187747\";\r\n+\r\n     @Override\r\n     protected void onCreate(Bundle savedInstanceState) {\r\n         super.onCreate(savedInstanceState);\r\n         setContentView(R.layout.activity_base);\r\n-        btn_settings = (Button)findViewById(R.id.btn_settings);\r\n+\r\n+        //session class instance\r\n+        session = new SessionManager(getApplicationContext());\r\n+        /**\r\n+         * call this function when you want to check if the user is logged in or not\r\n+         * this will check if the user is logged in or not and then direct it to login activity\r\n+         */\r\n+        session.checkLogIn();\r\n+\r\n+\r\n+        btn_settings = (Button) findViewById(R.id.btn_settings);\r\n         btn_settings.setOnClickListener(new View.OnClickListener() {\r\n             @Override\r\n             public void onClick(View v) {\r\n-                Intent o = new Intent(BaseActivity.this,Settings.class);\r\n+                Intent o = new Intent(BaseActivity.this, Settings.class);\r\n                 startActivity(o);\r\n             }\r\n         });\r\n-        TelephonyManager tMgr = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);\r","path":"app/src/main/java/com/sdsmdg/pulkit/callingtext/BaseActivity.java","position":66,"original_position":66,"commit_id":"6a3c094be4da3611eed131b99c051a978252a37d","original_commit_id":"a376964f9234df20fda1e09577bd2766b7bbd977","user":{"login":"samagra14","id":25154317,"avatar_url":"https://avatars1.githubusercontent.com/u/25154317?v=3","gravatar_id":"","url":"https://api.github.com/users/samagra14","html_url":"https://github.com/samagra14","followers_url":"https://api.github.com/users/samagra14/followers","following_url":"https://api.github.com/users/samagra14/following{/other_user}","gists_url":"https://api.github.com/users/samagra14/gists{/gist_id}","starred_url":"https://api.github.com/users/samagra14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samagra14/subscriptions","organizations_url":"https://api.github.com/users/samagra14/orgs","repos_url":"https://api.github.com/users/samagra14/repos","events_url":"https://api.github.com/users/samagra14/events{/privacy}","received_events_url":"https://api.github.com/users/samagra14/received_events","type":"User","site_admin":false},"body":"Checked.","created_at":"2017-05-22T11:39:26Z","updated_at":"2017-05-22T11:39:27Z","html_url":"https://github.com/sdsmdg/Calling-Text/pull/4#discussion_r117724075","pull_request_url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/comments/117724075"},"html":{"href":"https://github.com/sdsmdg/Calling-Text/pull/4#discussion_r117724075"},"pull_request":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4","id":110265634,"html_url":"https://github.com/sdsmdg/Calling-Text/pull/4","diff_url":"https://github.com/sdsmdg/Calling-Text/pull/4.diff","patch_url":"https://github.com/sdsmdg/Calling-Text/pull/4.patch","issue_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/4","number":4,"state":"open","locked":false,"title":"Samagra","user":{"login":"samagra14","id":25154317,"avatar_url":"https://avatars1.githubusercontent.com/u/25154317?v=3","gravatar_id":"","url":"https://api.github.com/users/samagra14","html_url":"https://github.com/samagra14","followers_url":"https://api.github.com/users/samagra14/followers","following_url":"https://api.github.com/users/samagra14/following{/other_user}","gists_url":"https://api.github.com/users/samagra14/gists{/gist_id}","starred_url":"https://api.github.com/users/samagra14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samagra14/subscriptions","organizations_url":"https://api.github.com/users/samagra14/orgs","repos_url":"https://api.github.com/users/samagra14/repos","events_url":"https://api.github.com/users/samagra14/events{/privacy}","received_events_url":"https://api.github.com/users/samagra14/received_events","type":"User","site_admin":false},"body":"Login page implementation via session manager and shared preferences","created_at":"2017-03-11T16:58:21Z","updated_at":"2017-05-22T11:39:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"774dd8b759e7a96ec6293e9694bc8b5000a30ace","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/4/comments","statuses_url":"https://api.github.com/repos/sdsmdg/Calling-Text/statuses/6a3c094be4da3611eed131b99c051a978252a37d","head":{"label":"sdsmdg:samagra","ref":"samagra","sha":"6a3c094be4da3611eed131b99c051a978252a37d","user":{"login":"sdsmdg","id":6321651,"avatar_url":"https://avatars1.githubusercontent.com/u/6321651?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsmdg","html_url":"https://github.com/sdsmdg","followers_url":"https://api.github.com/users/sdsmdg/followers","following_url":"https://api.github.com/users/sdsmdg/following{/other_user}","gists_url":"https://api.github.com/users/sdsmdg/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsmdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsmdg/subscriptions","organizations_url":"https://api.github.com/users/sdsmdg/orgs","repos_url":"https://api.github.com/users/sdsmdg/repos","events_url":"https://api.github.com/users/sdsmdg/events{/privacy}","received_events_url":"https://api.github.com/users/sdsmdg/received_events","type":"Organization","site_admin":false},"repo":{"id":68532352,"name":"Calling-Text","full_name":"sdsmdg/Calling-Text","owner":{"login":"sdsmdg","id":6321651,"avatar_url":"https://avatars1.githubusercontent.com/u/6321651?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsmdg","html_url":"https://github.com/sdsmdg","followers_url":"https://api.github.com/users/sdsmdg/followers","following_url":"https://api.github.com/users/sdsmdg/following{/other_user}","gists_url":"https://api.github.com/users/sdsmdg/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsmdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsmdg/subscriptions","organizations_url":"https://api.github.com/users/sdsmdg/orgs","repos_url":"https://api.github.com/users/sdsmdg/repos","events_url":"https://api.github.com/users/sdsmdg/events{/privacy}","received_events_url":"https://api.github.com/users/sdsmdg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdsmdg/Calling-Text","description":null,"fork":true,"url":"https://api.github.com/repos/sdsmdg/Calling-Text","forks_url":"https://api.github.com/repos/sdsmdg/Calling-Text/forks","keys_url":"https://api.github.com/repos/sdsmdg/Calling-Text/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdsmdg/Calling-Text/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdsmdg/Calling-Text/teams","hooks_url":"https://api.github.com/repos/sdsmdg/Calling-Text/hooks","issue_events_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/events{/number}","events_url":"https://api.github.com/repos/sdsmdg/Calling-Text/events","assignees_url":"https://api.github.com/repos/sdsmdg/Calling-Text/assignees{/user}","branches_url":"https://api.github.com/repos/sdsmdg/Calling-Text/branches{/branch}","tags_url":"https://api.github.com/repos/sdsmdg/Calling-Text/tags","blobs_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdsmdg/Calling-Text/statuses/{sha}","languages_url":"https://api.github.com/repos/sdsmdg/Calling-Text/languages","stargazers_url":"https://api.github.com/repos/sdsmdg/Calling-Text/stargazers","contributors_url":"https://api.github.com/repos/sdsmdg/Calling-Text/contributors","subscribers_url":"https://api.github.com/repos/sdsmdg/Calling-Text/subscribers","subscription_url":"https://api.github.com/repos/sdsmdg/Calling-Text/subscription","commits_url":"https://api.github.com/repos/sdsmdg/Calling-Text/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdsmdg/Calling-Text/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdsmdg/Calling-Text/contents/{+path}","compare_url":"https://api.github.com/repos/sdsmdg/Calling-Text/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdsmdg/Calling-Text/merges","archive_url":"https://api.github.com/repos/sdsmdg/Calling-Text/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdsmdg/Calling-Text/downloads","issues_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues{/number}","pulls_url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls{/number}","milestones_url":"https://api.github.com/repos/sdsmdg/Calling-Text/milestones{/number}","notifications_url":"https://api.github.com/repos/sdsmdg/Calling-Text/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdsmdg/Calling-Text/labels{/name}","releases_url":"https://api.github.com/repos/sdsmdg/Calling-Text/releases{/id}","deployments_url":"https://api.github.com/repos/sdsmdg/Calling-Text/deployments","created_at":"2016-09-18T16:12:14Z","updated_at":"2017-05-20T12:13:56Z","pushed_at":"2017-05-18T23:24:25Z","git_url":"git://github.com/sdsmdg/Calling-Text.git","ssh_url":"git@github.com:sdsmdg/Calling-Text.git","clone_url":"https://github.com/sdsmdg/Calling-Text.git","svn_url":"https://github.com/sdsmdg/Calling-Text","homepage":null,"size":1321,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"sdsmdg:master","ref":"master","sha":"0323ec5fcf6d75cd128c95ae70574b240d5f110f","user":{"login":"sdsmdg","id":6321651,"avatar_url":"https://avatars1.githubusercontent.com/u/6321651?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsmdg","html_url":"https://github.com/sdsmdg","followers_url":"https://api.github.com/users/sdsmdg/followers","following_url":"https://api.github.com/users/sdsmdg/following{/other_user}","gists_url":"https://api.github.com/users/sdsmdg/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsmdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsmdg/subscriptions","organizations_url":"https://api.github.com/users/sdsmdg/orgs","repos_url":"https://api.github.com/users/sdsmdg/repos","events_url":"https://api.github.com/users/sdsmdg/events{/privacy}","received_events_url":"https://api.github.com/users/sdsmdg/received_events","type":"Organization","site_admin":false},"repo":{"id":68532352,"name":"Calling-Text","full_name":"sdsmdg/Calling-Text","owner":{"login":"sdsmdg","id":6321651,"avatar_url":"https://avatars1.githubusercontent.com/u/6321651?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsmdg","html_url":"https://github.com/sdsmdg","followers_url":"https://api.github.com/users/sdsmdg/followers","following_url":"https://api.github.com/users/sdsmdg/following{/other_user}","gists_url":"https://api.github.com/users/sdsmdg/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsmdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsmdg/subscriptions","organizations_url":"https://api.github.com/users/sdsmdg/orgs","repos_url":"https://api.github.com/users/sdsmdg/repos","events_url":"https://api.github.com/users/sdsmdg/events{/privacy}","received_events_url":"https://api.github.com/users/sdsmdg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdsmdg/Calling-Text","description":null,"fork":true,"url":"https://api.github.com/repos/sdsmdg/Calling-Text","forks_url":"https://api.github.com/repos/sdsmdg/Calling-Text/forks","keys_url":"https://api.github.com/repos/sdsmdg/Calling-Text/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdsmdg/Calling-Text/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdsmdg/Calling-Text/teams","hooks_url":"https://api.github.com/repos/sdsmdg/Calling-Text/hooks","issue_events_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/events{/number}","events_url":"https://api.github.com/repos/sdsmdg/Calling-Text/events","assignees_url":"https://api.github.com/repos/sdsmdg/Calling-Text/assignees{/user}","branches_url":"https://api.github.com/repos/sdsmdg/Calling-Text/branches{/branch}","tags_url":"https://api.github.com/repos/sdsmdg/Calling-Text/tags","blobs_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdsmdg/Calling-Text/statuses/{sha}","languages_url":"https://api.github.com/repos/sdsmdg/Calling-Text/languages","stargazers_url":"https://api.github.com/repos/sdsmdg/Calling-Text/stargazers","contributors_url":"https://api.github.com/repos/sdsmdg/Calling-Text/contributors","subscribers_url":"https://api.github.com/repos/sdsmdg/Calling-Text/subscribers","subscription_url":"https://api.github.com/repos/sdsmdg/Calling-Text/subscription","commits_url":"https://api.github.com/repos/sdsmdg/Calling-Text/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdsmdg/Calling-Text/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdsmdg/Calling-Text/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdsmdg/Calling-Text/contents/{+path}","compare_url":"https://api.github.com/repos/sdsmdg/Calling-Text/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdsmdg/Calling-Text/merges","archive_url":"https://api.github.com/repos/sdsmdg/Calling-Text/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdsmdg/Calling-Text/downloads","issues_url":"https://api.github.com/repos/sdsmdg/Calling-Text/issues{/number}","pulls_url":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls{/number}","milestones_url":"https://api.github.com/repos/sdsmdg/Calling-Text/milestones{/number}","notifications_url":"https://api.github.com/repos/sdsmdg/Calling-Text/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdsmdg/Calling-Text/labels{/name}","releases_url":"https://api.github.com/repos/sdsmdg/Calling-Text/releases{/id}","deployments_url":"https://api.github.com/repos/sdsmdg/Calling-Text/deployments","created_at":"2016-09-18T16:12:14Z","updated_at":"2017-05-20T12:13:56Z","pushed_at":"2017-05-18T23:24:25Z","git_url":"git://github.com/sdsmdg/Calling-Text.git","ssh_url":"git@github.com:sdsmdg/Calling-Text.git","clone_url":"https://github.com/sdsmdg/Calling-Text.git","svn_url":"https://github.com/sdsmdg/Calling-Text","homepage":null,"size":1321,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4"},"html":{"href":"https://github.com/sdsmdg/Calling-Text/pull/4"},"issue":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/4"},"comments":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sdsmdg/Calling-Text/statuses/6a3c094be4da3611eed131b99c051a978252a37d"}}}}
{"actor":{"display_login":"samagra14"}}