{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_99/pulls/comments/48831038","id":48831038,"diff_hunk":"@@ -76,38 +78,50 @@\n     String catnewURL = \"\";\n     String curl = \"\";\n     ArrayAdapter<String> dataAdapter;\n-    WordReturnByCategory wordReturnByCategory;\n-    LinkedHashMap<String, String> catclick;\n+    LinkedHashMap<String,String> catclick;\n     WordAdapter cad;\n-    ArrayList<String> answer;\n-    ArrayList<String> word2, ans2;\n+    Boolean mIsSpinnerFirstCall;\n     ArrayList<WordResponse.WordsEntity.AnswersEntity> wordAns;\n     Url ur;\n-    Button pdf;\n+    Button pdf,btnBack;\n     File pdfFolder;\n     File myFile;\n     private String filepath = \"MyInvoices\";\n     public String word_list=\"all word\";\n+    Spinner spinnerOption;\n+    private ProgressDialog mDialog;\n+    private int mWidth;\n+\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_learned);\n         Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n         setSupportActionBar(toolbar);\n-        word2 = new ArrayList<>();\n-        ans2 = new ArrayList<>();\n-        answer = new ArrayList<>();\n-        catclick = new LinkedHashMap<>();\n+        catclick=new LinkedHashMap<>();\n         spinnerCategory = (Spinner) findViewById(R.id.spinnerCategory);\n+        spinnerOption=(Spinner)findViewById(R.id.spinnerOption);\n         sessionManager = new SessionManager(this);\n         user = sessionManager.getUserDetails();\n         token = user.get(mConstant.KEY_AUTH_TOKEN);\n         list = (ListView) findViewById(R.id.learned);\n         pdf=(Button)findViewById(R.id.pdf);\n+        btnBack= (Button) findViewById(R.id.back_btn);\n+        btnBack.setOnClickListener(new View.OnClickListener() {\n+            @Override\n+            public void onClick(View v) {\n+                onBackPressed();\n+            }\n+        });\n         pdf.setOnClickListener(new View.OnClickListener() {\n             @Override\n             public void onClick(View v) {\n                 try {\n                     createpdf();\n+                    Intent intent = new Intent(Intent.ACTION_VIEW);\n+                    intent.setDataAndType(Uri.fromFile(myFile), \"application/pdf\");\n+                    intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n+                    Intent intent1 = Intent.createChooser(intent, \"Open With\");","path":"app/src/main/java/com/framgia/elsytem/LearnedActivity.java","position":89,"original_position":89,"commit_id":"06f61d38589d636ae75e568f8609952dc6712184","original_commit_id":"06f61d38589d636ae75e568f8609952dc6712184","user":{"login":"nvmanh","id":2127662,"avatar_url":"https://avatars.githubusercontent.com/u/2127662?v=3","gravatar_id":"","url":"https://api.github.com/users/nvmanh","html_url":"https://github.com/nvmanh","followers_url":"https://api.github.com/users/nvmanh/followers","following_url":"https://api.github.com/users/nvmanh/following{/other_user}","gists_url":"https://api.github.com/users/nvmanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nvmanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvmanh/subscriptions","organizations_url":"https://api.github.com/users/nvmanh/orgs","repos_url":"https://api.github.com/users/nvmanh/repos","events_url":"https://api.github.com/users/nvmanh/events{/privacy}","received_events_url":"https://api.github.com/users/nvmanh/received_events","type":"User","site_admin":false},"body":"strings.xml please","created_at":"2016-01-05T10:25:34Z","updated_at":"2016-01-05T10:25:34Z","html_url":"https://github.com/framgia/fels_99/pull/45#discussion_r48831038","pull_request_url":"https://api.github.com/repos/framgia/fels_99/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_99/pulls/comments/48831038"},"html":{"href":"https://github.com/framgia/fels_99/pull/45#discussion_r48831038"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_99/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_99/pulls/45","id":55066817,"html_url":"https://github.com/framgia/fels_99/pull/45","diff_url":"https://github.com/framgia/fels_99/pull/45.diff","patch_url":"https://github.com/framgia/fels_99/pull/45.patch","issue_url":"https://api.github.com/repos/framgia/fels_99/issues/45","number":45,"state":"open","locked":false,"title":"resolve showing word list","user":{"login":"shawon-sharma","id":15901538,"avatar_url":"https://avatars.githubusercontent.com/u/15901538?v=3","gravatar_id":"","url":"https://api.github.com/users/shawon-sharma","html_url":"https://github.com/shawon-sharma","followers_url":"https://api.github.com/users/shawon-sharma/followers","following_url":"https://api.github.com/users/shawon-sharma/following{/other_user}","gists_url":"https://api.github.com/users/shawon-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/shawon-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawon-sharma/subscriptions","organizations_url":"https://api.github.com/users/shawon-sharma/orgs","repos_url":"https://api.github.com/users/shawon-sharma/repos","events_url":"https://api.github.com/users/shawon-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/shawon-sharma/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-05T08:47:29Z","updated_at":"2016-01-05T10:25:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1d9be313934259b885b5bb17224e93ee389572a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_99/pulls/45/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_99/pulls/45/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_99/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_99/issues/45/comments","statuses_url":"https://api.github.com/repos/framgia/fels_99/statuses/06f61d38589d636ae75e568f8609952dc6712184","head":{"label":"shawon-sharma:test_app","ref":"test_app","sha":"06f61d38589d636ae75e568f8609952dc6712184","user":{"login":"shawon-sharma","id":15901538,"avatar_url":"https://avatars.githubusercontent.com/u/15901538?v=3","gravatar_id":"","url":"https://api.github.com/users/shawon-sharma","html_url":"https://github.com/shawon-sharma","followers_url":"https://api.github.com/users/shawon-sharma/followers","following_url":"https://api.github.com/users/shawon-sharma/following{/other_user}","gists_url":"https://api.github.com/users/shawon-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/shawon-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawon-sharma/subscriptions","organizations_url":"https://api.github.com/users/shawon-sharma/orgs","repos_url":"https://api.github.com/users/shawon-sharma/repos","events_url":"https://api.github.com/users/shawon-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/shawon-sharma/received_events","type":"User","site_admin":false},"repo":{"id":47607757,"name":"fels_99","full_name":"shawon-sharma/fels_99","owner":{"login":"shawon-sharma","id":15901538,"avatar_url":"https://avatars.githubusercontent.com/u/15901538?v=3","gravatar_id":"","url":"https://api.github.com/users/shawon-sharma","html_url":"https://github.com/shawon-sharma","followers_url":"https://api.github.com/users/shawon-sharma/followers","following_url":"https://api.github.com/users/shawon-sharma/following{/other_user}","gists_url":"https://api.github.com/users/shawon-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/shawon-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawon-sharma/subscriptions","organizations_url":"https://api.github.com/users/shawon-sharma/orgs","repos_url":"https://api.github.com/users/shawon-sharma/repos","events_url":"https://api.github.com/users/shawon-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/shawon-sharma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shawon-sharma/fels_99","description":"Framgia E-Learning system (training)","fork":true,"url":"https://api.github.com/repos/shawon-sharma/fels_99","forks_url":"https://api.github.com/repos/shawon-sharma/fels_99/forks","keys_url":"https://api.github.com/repos/shawon-sharma/fels_99/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shawon-sharma/fels_99/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shawon-sharma/fels_99/teams","hooks_url":"https://api.github.com/repos/shawon-sharma/fels_99/hooks","issue_events_url":"https://api.github.com/repos/shawon-sharma/fels_99/issues/events{/number}","events_url":"https://api.github.com/repos/shawon-sharma/fels_99/events","assignees_url":"https://api.github.com/repos/shawon-sharma/fels_99/assignees{/user}","branches_url":"https://api.github.com/repos/shawon-sharma/fels_99/branches{/branch}","tags_url":"https://api.github.com/repos/shawon-sharma/fels_99/tags","blobs_url":"https://api.github.com/repos/shawon-sharma/fels_99/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shawon-sharma/fels_99/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shawon-sharma/fels_99/git/refs{/sha}","trees_url":"https://api.github.com/repos/shawon-sharma/fels_99/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shawon-sharma/fels_99/statuses/{sha}","languages_url":"https://api.github.com/repos/shawon-sharma/fels_99/languages","stargazers_url":"https://api.github.com/repos/shawon-sharma/fels_99/stargazers","contributors_url":"https://api.github.com/repos/shawon-sharma/fels_99/contributors","subscribers_url":"https://api.github.com/repos/shawon-sharma/fels_99/subscribers","subscription_url":"https://api.github.com/repos/shawon-sharma/fels_99/subscription","commits_url":"https://api.github.com/repos/shawon-sharma/fels_99/commits{/sha}","git_commits_url":"https://api.github.com/repos/shawon-sharma/fels_99/git/commits{/sha}","comments_url":"https://api.github.com/repos/shawon-sharma/fels_99/comments{/number}","issue_comment_url":"https://api.github.com/repos/shawon-sharma/fels_99/issues/comments{/number}","contents_url":"https://api.github.com/repos/shawon-sharma/fels_99/contents/{+path}","compare_url":"https://api.github.com/repos/shawon-sharma/fels_99/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shawon-sharma/fels_99/merges","archive_url":"https://api.github.com/repos/shawon-sharma/fels_99/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shawon-sharma/fels_99/downloads","issues_url":"https://api.github.com/repos/shawon-sharma/fels_99/issues{/number}","pulls_url":"https://api.github.com/repos/shawon-sharma/fels_99/pulls{/number}","milestones_url":"https://api.github.com/repos/shawon-sharma/fels_99/milestones{/number}","notifications_url":"https://api.github.com/repos/shawon-sharma/fels_99/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shawon-sharma/fels_99/labels{/name}","releases_url":"https://api.github.com/repos/shawon-sharma/fels_99/releases{/id}","created_at":"2015-12-08T08:03:55Z","updated_at":"2015-12-08T07:43:10Z","pushed_at":"2016-01-05T10:19:29Z","git_url":"git://github.com/shawon-sharma/fels_99.git","ssh_url":"git@github.com:shawon-sharma/fels_99.git","clone_url":"https://github.com/shawon-sharma/fels_99.git","svn_url":"https://github.com/shawon-sharma/fels_99","homepage":null,"size":633,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"c0fb682e92554c93e854ccb53a13a13916dfba76","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":47606714,"name":"fels_99","full_name":"framgia/fels_99","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_99","description":"Framgia E-Learning system (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_99","forks_url":"https://api.github.com/repos/framgia/fels_99/forks","keys_url":"https://api.github.com/repos/framgia/fels_99/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_99/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_99/teams","hooks_url":"https://api.github.com/repos/framgia/fels_99/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_99/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_99/events","assignees_url":"https://api.github.com/repos/framgia/fels_99/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_99/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_99/tags","blobs_url":"https://api.github.com/repos/framgia/fels_99/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_99/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_99/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_99/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_99/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_99/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_99/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_99/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_99/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_99/subscription","commits_url":"https://api.github.com/repos/framgia/fels_99/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_99/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_99/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_99/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_99/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_99/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_99/merges","archive_url":"https://api.github.com/repos/framgia/fels_99/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_99/downloads","issues_url":"https://api.github.com/repos/framgia/fels_99/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_99/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_99/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_99/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_99/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_99/releases{/id}","created_at":"2015-12-08T07:43:10Z","updated_at":"2015-12-08T07:43:10Z","pushed_at":"2016-01-05T10:21:58Z","git_url":"git://github.com/framgia/fels_99.git","ssh_url":"git@github.com:framgia/fels_99.git","clone_url":"https://github.com/framgia/fels_99.git","svn_url":"https://github.com/framgia/fels_99","homepage":null,"size":669,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_99/pulls/45"},"html":{"href":"https://github.com/framgia/fels_99/pull/45"},"issue":{"href":"https://api.github.com/repos/framgia/fels_99/issues/45"},"comments":{"href":"https://api.github.com/repos/framgia/fels_99/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_99/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_99/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_99/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_99/statuses/06f61d38589d636ae75e568f8609952dc6712184"}}}}