{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/80","labels_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/80/comments","events_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/80/events","html_url":"https://github.com/googlesamples/cardboard-unity/issues/80","id":105431673,"number":80,"title":"BaseAndroidDevice.cs: error CS1674: `AndroidJavaClass': type used in a using statement must be implicitly convertible to `System.IDisposable'","user":{"login":"D3m0n92","id":5271475,"avatar_url":"https://avatars.githubusercontent.com/u/5271475?v=3","gravatar_id":"","url":"https://api.github.com/users/D3m0n92","html_url":"https://github.com/D3m0n92","followers_url":"https://api.github.com/users/D3m0n92/followers","following_url":"https://api.github.com/users/D3m0n92/following{/other_user}","gists_url":"https://api.github.com/users/D3m0n92/gists{/gist_id}","starred_url":"https://api.github.com/users/D3m0n92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D3m0n92/subscriptions","organizations_url":"https://api.github.com/users/D3m0n92/orgs","repos_url":"https://api.github.com/users/D3m0n92/repos","events_url":"https://api.github.com/users/D3m0n92/events{/privacy}","received_events_url":"https://api.github.com/users/D3m0n92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T17:30:12Z","updated_at":"2015-09-08T18:01:06Z","closed_at":null,"body":"I have this error on script: BaseAndroidDevice.\r\n\r\nUnity 5.1.3p2"},"comment":{"url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/comments/138650275","html_url":"https://github.com/googlesamples/cardboard-unity/issues/80#issuecomment-138650275","issue_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/80","id":138650275,"user":{"login":"D3m0n92","id":5271475,"avatar_url":"https://avatars.githubusercontent.com/u/5271475?v=3","gravatar_id":"","url":"https://api.github.com/users/D3m0n92","html_url":"https://github.com/D3m0n92","followers_url":"https://api.github.com/users/D3m0n92/followers","following_url":"https://api.github.com/users/D3m0n92/following{/other_user}","gists_url":"https://api.github.com/users/D3m0n92/gists{/gist_id}","starred_url":"https://api.github.com/users/D3m0n92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D3m0n92/subscriptions","organizations_url":"https://api.github.com/users/D3m0n92/orgs","repos_url":"https://api.github.com/users/D3m0n92/repos","events_url":"https://api.github.com/users/D3m0n92/events{/privacy}","received_events_url":"https://api.github.com/users/D3m0n92/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T18:01:06Z","updated_at":"2015-09-08T18:01:06Z","body":"Yes, \r\n\r\n\"AndroidJavaClass player = new AndroidJavaClass(\"com.unity3d.player.UnityPlayer\");\r\nandroidActivity = player.GetStatic<AndroidJavaObject>(\"currentActivity\");\"\r\n\r\nFix the problem.. But now i have this line on error: (same using)\r\n\r\n      using (AndroidJavaClass player = new AndroidJavaClass(cardboardClass)) {\r\n        androidActivity = player.CallStatic<AndroidJavaObject>(\"getActivity\");"}}