{"action":"created","issue":{"url":"https://api.github.com/repos/CloudRail/cloudrail-si-android-sdk/issues/2","repository_url":"https://api.github.com/repos/CloudRail/cloudrail-si-android-sdk","labels_url":"https://api.github.com/repos/CloudRail/cloudrail-si-android-sdk/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/CloudRail/cloudrail-si-android-sdk/issues/2/comments","events_url":"https://api.github.com/repos/CloudRail/cloudrail-si-android-sdk/issues/2/events","html_url":"https://github.com/CloudRail/cloudrail-si-android-sdk/issues/2","id":153667318,"number":2,"title":"Separate the authentication with API calls","user":{"login":"gemiren","id":7810771,"avatar_url":"https://avatars.githubusercontent.com/u/7810771?v=3","gravatar_id":"","url":"https://api.github.com/users/gemiren","html_url":"https://github.com/gemiren","followers_url":"https://api.github.com/users/gemiren/followers","following_url":"https://api.github.com/users/gemiren/following{/other_user}","gists_url":"https://api.github.com/users/gemiren/gists{/gist_id}","starred_url":"https://api.github.com/users/gemiren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemiren/subscriptions","organizations_url":"https://api.github.com/users/gemiren/orgs","repos_url":"https://api.github.com/users/gemiren/repos","events_url":"https://api.github.com/users/gemiren/events{/privacy}","received_events_url":"https://api.github.com/users/gemiren/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-08T17:24:55Z","updated_at":"2016-05-14T16:37:00Z","closed_at":"2016-05-13T15:38:24Z","body":"Currently authentication is done by the library implicitly when calling upload or download APIs, users have no control on when to do the authentication check. It will be useful to separate that with the other API calls. This will give more flexibility to users. After passing the authentication during the first run. No more activity context is required to pass to the API initialization so it can be used in services without UI. "},"comment":{"url":"https://api.github.com/repos/CloudRail/cloudrail-si-android-sdk/issues/comments/219229956","html_url":"https://github.com/CloudRail/cloudrail-si-android-sdk/issues/2#issuecomment-219229956","issue_url":"https://api.github.com/repos/CloudRail/cloudrail-si-android-sdk/issues/2","id":219229956,"user":{"login":"FlorianWendel","id":10048753,"avatar_url":"https://avatars.githubusercontent.com/u/10048753?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorianWendel","html_url":"https://github.com/FlorianWendel","followers_url":"https://api.github.com/users/FlorianWendel/followers","following_url":"https://api.github.com/users/FlorianWendel/following{/other_user}","gists_url":"https://api.github.com/users/FlorianWendel/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianWendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianWendel/subscriptions","organizations_url":"https://api.github.com/users/FlorianWendel/orgs","repos_url":"https://api.github.com/users/FlorianWendel/repos","events_url":"https://api.github.com/users/FlorianWendel/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianWendel/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T16:37:00Z","updated_at":"2016-05-14T16:37:00Z","body":"Login and logout are strictly optional. Upload has one more parameter with the new version, if you want it to behave like before set it to false as documented. You can save and restore login credentials with saveAsString and loadAsString, e.g. to and from the app storage, a database etc. (see http://developer.android.com/training/basics/data-storage/index.html). Normally you want to load on app startup and save before shutdown. If you still have troubles with the upload function, I'd be happy to hear about the details of what goes wrong. "}}