{"action":"created","issue":{"url":"https://api.github.com/repos/Applifier/unity-ads/issues/58","labels_url":"https://api.github.com/repos/Applifier/unity-ads/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/Applifier/unity-ads/issues/58/comments","events_url":"https://api.github.com/repos/Applifier/unity-ads/issues/58/events","html_url":"https://github.com/Applifier/unity-ads/issues/58","id":95843763,"number":58,"title":"Close Activity after onHide()","user":{"login":"Informaticore","id":1415713,"avatar_url":"https://avatars.githubusercontent.com/u/1415713?v=3","gravatar_id":"","url":"https://api.github.com/users/Informaticore","html_url":"https://github.com/Informaticore","followers_url":"https://api.github.com/users/Informaticore/followers","following_url":"https://api.github.com/users/Informaticore/following{/other_user}","gists_url":"https://api.github.com/users/Informaticore/gists{/gist_id}","starred_url":"https://api.github.com/users/Informaticore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Informaticore/subscriptions","organizations_url":"https://api.github.com/users/Informaticore/orgs","repos_url":"https://api.github.com/users/Informaticore/repos","events_url":"https://api.github.com/users/Informaticore/events{/privacy}","received_events_url":"https://api.github.com/users/Informaticore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-18T17:26:54Z","updated_at":"2015-07-21T10:01:39Z","closed_at":null,"body":"Hey,\r\n\r\nI tried to implement UnityAds and the few steps of the integration Guide for Android.\r\nSomething strange is happening.\r\n\r\nI want to show the Ad after I finished a game. I call the show() methode, the video is playing everything is working. But now I want to close the current Activity when the Ad is finished, so I call finish() in the onHide() methode. This works exactly one time. If I go into this activity again do the same thing, my Activity is not finishing and I have no idea how this could happen.\r\n\r\nCode:\r\n\r\nin onCreate:\r\n```java\r\n        UnityAds.init(this, \"54048\", this);\r\n        UnityAds.setDebugMode(BuildConfig.DEBUG);\r\n        UnityAds.setTestMode(BuildConfig.DEBUG);\r\n        UnityAds.changeActivity(this);\r\n```\r\n```java\r\n    @Override\r\n    public void onHide() {\r\n        finish();\r\n    }\r\n```\r\n\r\nI call UnityAds.changeActivity(this); in onResume as well like it was explained in the guide.\r\nThere is something strange with the Listener. Please help."},"comment":{"url":"https://api.github.com/repos/Applifier/unity-ads/issues/comments/123246776","html_url":"https://github.com/Applifier/unity-ads/issues/58#issuecomment-123246776","issue_url":"https://api.github.com/repos/Applifier/unity-ads/issues/58","id":123246776,"user":{"login":"gomsu","id":511524,"avatar_url":"https://avatars.githubusercontent.com/u/511524?v=3","gravatar_id":"","url":"https://api.github.com/users/gomsu","html_url":"https://github.com/gomsu","followers_url":"https://api.github.com/users/gomsu/followers","following_url":"https://api.github.com/users/gomsu/following{/other_user}","gists_url":"https://api.github.com/users/gomsu/gists{/gist_id}","starred_url":"https://api.github.com/users/gomsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gomsu/subscriptions","organizations_url":"https://api.github.com/users/gomsu/orgs","repos_url":"https://api.github.com/users/gomsu/repos","events_url":"https://api.github.com/users/gomsu/events{/privacy}","received_events_url":"https://api.github.com/users/gomsu/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T10:01:39Z","updated_at":"2015-07-21T10:01:39Z","body":"Yeah, That is another fix to actually listen to UnityAds in the activity that is only being destroyed when the application is being quit."}}