{"action":"created","issue":{"url":"https://api.github.com/repos/javiersantos/AppUpdater/issues/147","repository_url":"https://api.github.com/repos/javiersantos/AppUpdater","labels_url":"https://api.github.com/repos/javiersantos/AppUpdater/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/javiersantos/AppUpdater/issues/147/comments","events_url":"https://api.github.com/repos/javiersantos/AppUpdater/issues/147/events","html_url":"https://github.com/javiersantos/AppUpdater/issues/147","id":370444207,"node_id":"MDU6SXNzdWUzNzA0NDQyMDc=","number":147,"title":"Download Listener","user":{"login":"newbie-unknown","id":35353099,"node_id":"MDQ6VXNlcjM1MzUzMDk5","avatar_url":"https://avatars0.githubusercontent.com/u/35353099?v=4","gravatar_id":"","url":"https://api.github.com/users/newbie-unknown","html_url":"https://github.com/newbie-unknown","followers_url":"https://api.github.com/users/newbie-unknown/followers","following_url":"https://api.github.com/users/newbie-unknown/following{/other_user}","gists_url":"https://api.github.com/users/newbie-unknown/gists{/gist_id}","starred_url":"https://api.github.com/users/newbie-unknown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newbie-unknown/subscriptions","organizations_url":"https://api.github.com/users/newbie-unknown/orgs","repos_url":"https://api.github.com/users/newbie-unknown/repos","events_url":"https://api.github.com/users/newbie-unknown/events{/privacy}","received_events_url":"https://api.github.com/users/newbie-unknown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-16T05:24:23Z","updated_at":"2018-10-22T13:03:08Z","closed_at":null,"author_association":"NONE","body":"How to set button that downloads the app automatically? I mean, without going to browser. Or set an download listener"},"comment":{"url":"https://api.github.com/repos/javiersantos/AppUpdater/issues/comments/431829183","html_url":"https://github.com/javiersantos/AppUpdater/issues/147#issuecomment-431829183","issue_url":"https://api.github.com/repos/javiersantos/AppUpdater/issues/147","id":431829183,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTgyOTE4Mw==","user":{"login":"creativetrendsapps","id":14278089,"node_id":"MDQ6VXNlcjE0Mjc4MDg5","avatar_url":"https://avatars0.githubusercontent.com/u/14278089?v=4","gravatar_id":"","url":"https://api.github.com/users/creativetrendsapps","html_url":"https://github.com/creativetrendsapps","followers_url":"https://api.github.com/users/creativetrendsapps/followers","following_url":"https://api.github.com/users/creativetrendsapps/following{/other_user}","gists_url":"https://api.github.com/users/creativetrendsapps/gists{/gist_id}","starred_url":"https://api.github.com/users/creativetrendsapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creativetrendsapps/subscriptions","organizations_url":"https://api.github.com/users/creativetrendsapps/orgs","repos_url":"https://api.github.com/users/creativetrendsapps/repos","events_url":"https://api.github.com/users/creativetrendsapps/events{/privacy}","received_events_url":"https://api.github.com/users/creativetrendsapps/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T13:03:08Z","updated_at":"2018-10-22T13:03:08Z","author_association":"NONE","body":"@newbie-unknown something like this:\r\n\r\nnew AppUpdater(this)\r\n                    .setUpdateFrom(UpdateFrom.JSON)\r\n                    .setUpdateJSON(getResources().getString(R.string.up))\r\n                    .setButtonUpdateClickListener((dialog, which) -> {\r\n                        if(!PreferencesUtility.hasStoragePermission(AppListActivity.this)){\r\n                            PreferencesUtility.requestStoragePermission(AppListActivity.this);\r\n                        }else {\r\n                            downloadFile(getResources().getString(R.string.up_link));\r\n                        }\r\n                    })\r\n                    .start();\r\n        }"}}
{"actor":{"display_login":"creativetrendsapps"}}