{"action":"created","comment":{"url":"https://api.github.com/repos/getlantern/flashlight-build/pulls/comments/23883139","id":23883139,"diff_hunk":"@@ -0,0 +1,232 @@\n+# Lantern on Android\n+\n+```java\n+import go.flashlight.Flashlight;\n+```\n+\n+The `lantern-android` repository provides documentation and scripts for\n+building a basic [flashlight][1] shared library that exports special methods\n+that can be used from Java code, making it possible to run the [flashlight][1]\n+client on Android devices.\n+\n+```java\n+try {\n+  Flashlight.RunClientProxy(\"0.0.0.0:9192\");\n+} catch (Exception e) {\n+  throw new RuntimeException(e);\n+}\n+```\n+\n+## Prerequisites\n+\n+* An OSX or Linux box\n+* [docker][2]\n+* [Android Studio][3]\n+* [Go 1.4][4]\n+* [GNUMake][6]\n+\n+### Setting up a development environment\n+\n+We're going to clone and use the [flashlight-build][5] repository, that\n+project provides us with everything we need to build Lantern tools and\n+libraries.\n+\n+```sh\n+mkdir -p $GOPATH/src/github.com/getlantern\n+cd $GOPATH/src/github.com/getlantern\n+git clone https://github.com/getlantern/flashlight-build.git\n+```\n+\n+After cloning the repository use the `setenv.bash` script to export development\n+enviromental variables to the current terminal session.\n+\n+```\n+cd flashlight-build\n+source setenv.bash\n+```\n+\n+## Building the Android library\n+\n+`flashlight-build` will provide you with a copy of `lantern-android`, change\n+directory into `lantern-android` and execute `make` to start compiling our\n+shared library:\n+\n+```\n+cd $GOPATH/src/github.com/getlantern/lantern-android\n+\n+make\n+# ...\n+# BUILD SUCCESSFUL\n+# Total time: 7 seconds\n+```\n+\n+The `make` command will create a new `app` subdirectory that will contain an\n+Android example project. You may import the contents of the `app` subdirectory\n+into Android Studio to see libflashlight working.","path":"src/github.com/getlantern/lantern-android/README.md","position":66,"original_position":65,"commit_id":"f818c97fb47261b870e09598ff15d1521981e088","original_commit_id":"1bbcd6684580b6f322aa1e0aace4cae8d7713e4f","user":{"login":"xiam","id":385670,"avatar_url":"https://avatars.githubusercontent.com/u/385670?v=3","gravatar_id":"","url":"https://api.github.com/users/xiam","html_url":"https://github.com/xiam","followers_url":"https://api.github.com/users/xiam/followers","following_url":"https://api.github.com/users/xiam/following{/other_user}","gists_url":"https://api.github.com/users/xiam/gists{/gist_id}","starred_url":"https://api.github.com/users/xiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiam/subscriptions","organizations_url":"https://api.github.com/users/xiam/orgs","repos_url":"https://api.github.com/users/xiam/repos","events_url":"https://api.github.com/users/xiam/events{/privacy}","received_events_url":"https://api.github.com/users/xiam/received_events","type":"User","site_admin":false},"body":"I could not reproduce this error:\r\n\r\n![screen shot 2015-01-30 at 6 31 42 pm](https://cloud.githubusercontent.com/assets/385670/5985846/4af7d212-a8ae-11e4-976c-a4db92b1fa39.png)\r\n\r\ndoes this happen every time you try to run the Android emulator when VirtualBox is already opened?","created_at":"2015-01-31T00:33:58Z","updated_at":"2015-01-31T00:33:58Z","html_url":"https://github.com/getlantern/flashlight-build/pull/36#discussion_r23883139","pull_request_url":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/getlantern/flashlight-build/pulls/comments/23883139"},"html":{"href":"https://github.com/getlantern/flashlight-build/pull/36#discussion_r23883139"},"pull_request":{"href":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36","id":28080945,"html_url":"https://github.com/getlantern/flashlight-build/pull/36","diff_url":"https://github.com/getlantern/flashlight-build/pull/36.diff","patch_url":"https://github.com/getlantern/flashlight-build/pull/36.patch","issue_url":"https://api.github.com/repos/getlantern/flashlight-build/issues/36","number":36,"state":"open","locked":false,"title":"Lantern android","user":{"login":"xiam","id":385670,"avatar_url":"https://avatars.githubusercontent.com/u/385670?v=3","gravatar_id":"","url":"https://api.github.com/users/xiam","html_url":"https://github.com/xiam","followers_url":"https://api.github.com/users/xiam/followers","following_url":"https://api.github.com/users/xiam/following{/other_user}","gists_url":"https://api.github.com/users/xiam/gists{/gist_id}","starred_url":"https://api.github.com/users/xiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiam/subscriptions","organizations_url":"https://api.github.com/users/xiam/orgs","repos_url":"https://api.github.com/users/xiam/repos","events_url":"https://api.github.com/users/xiam/events{/privacy}","received_events_url":"https://api.github.com/users/xiam/received_events","type":"User","site_admin":false},"body":"The [lantern-android][1] project provides tools for creating a flashlight library that makes easy running and controlling a flashlight client on Android devices.\r\n\r\nThis commit provides example code and instructions.\r\n\r\n[1]: https://github.com/getlantern/lantern-android","created_at":"2015-01-27T03:20:55Z","updated_at":"2015-01-31T00:33:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"175975e66a3a0a2f862be3632ae5f3684a8bb313","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36/commits","review_comments_url":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36/comments","review_comment_url":"https://api.github.com/repos/getlantern/flashlight-build/pulls/comments/{number}","comments_url":"https://api.github.com/repos/getlantern/flashlight-build/issues/36/comments","statuses_url":"https://api.github.com/repos/getlantern/flashlight-build/statuses/f818c97fb47261b870e09598ff15d1521981e088","head":{"label":"getlantern:lantern-android","ref":"lantern-android","sha":"f818c97fb47261b870e09598ff15d1521981e088","user":{"login":"getlantern","id":624178,"avatar_url":"https://avatars.githubusercontent.com/u/624178?v=3","gravatar_id":"","url":"https://api.github.com/users/getlantern","html_url":"https://github.com/getlantern","followers_url":"https://api.github.com/users/getlantern/followers","following_url":"https://api.github.com/users/getlantern/following{/other_user}","gists_url":"https://api.github.com/users/getlantern/gists{/gist_id}","starred_url":"https://api.github.com/users/getlantern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlantern/subscriptions","organizations_url":"https://api.github.com/users/getlantern/orgs","repos_url":"https://api.github.com/users/getlantern/repos","events_url":"https://api.github.com/users/getlantern/events{/privacy}","received_events_url":"https://api.github.com/users/getlantern/received_events","type":"Organization","site_admin":false},"repo":{"id":27652771,"name":"flashlight-build","full_name":"getlantern/flashlight-build","owner":{"login":"getlantern","id":624178,"avatar_url":"https://avatars.githubusercontent.com/u/624178?v=3","gravatar_id":"","url":"https://api.github.com/users/getlantern","html_url":"https://github.com/getlantern","followers_url":"https://api.github.com/users/getlantern/followers","following_url":"https://api.github.com/users/getlantern/following{/other_user}","gists_url":"https://api.github.com/users/getlantern/gists{/gist_id}","starred_url":"https://api.github.com/users/getlantern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlantern/subscriptions","organizations_url":"https://api.github.com/users/getlantern/orgs","repos_url":"https://api.github.com/users/getlantern/repos","events_url":"https://api.github.com/users/getlantern/events{/privacy}","received_events_url":"https://api.github.com/users/getlantern/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getlantern/flashlight-build","description":"Repeatable builds for flashlight, using gost","fork":false,"url":"https://api.github.com/repos/getlantern/flashlight-build","forks_url":"https://api.github.com/repos/getlantern/flashlight-build/forks","keys_url":"https://api.github.com/repos/getlantern/flashlight-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getlantern/flashlight-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getlantern/flashlight-build/teams","hooks_url":"https://api.github.com/repos/getlantern/flashlight-build/hooks","issue_events_url":"https://api.github.com/repos/getlantern/flashlight-build/issues/events{/number}","events_url":"https://api.github.com/repos/getlantern/flashlight-build/events","assignees_url":"https://api.github.com/repos/getlantern/flashlight-build/assignees{/user}","branches_url":"https://api.github.com/repos/getlantern/flashlight-build/branches{/branch}","tags_url":"https://api.github.com/repos/getlantern/flashlight-build/tags","blobs_url":"https://api.github.com/repos/getlantern/flashlight-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getlantern/flashlight-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getlantern/flashlight-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/getlantern/flashlight-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getlantern/flashlight-build/statuses/{sha}","languages_url":"https://api.github.com/repos/getlantern/flashlight-build/languages","stargazers_url":"https://api.github.com/repos/getlantern/flashlight-build/stargazers","contributors_url":"https://api.github.com/repos/getlantern/flashlight-build/contributors","subscribers_url":"https://api.github.com/repos/getlantern/flashlight-build/subscribers","subscription_url":"https://api.github.com/repos/getlantern/flashlight-build/subscription","commits_url":"https://api.github.com/repos/getlantern/flashlight-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/getlantern/flashlight-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/getlantern/flashlight-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/getlantern/flashlight-build/issues/comments/{number}","contents_url":"https://api.github.com/repos/getlantern/flashlight-build/contents/{+path}","compare_url":"https://api.github.com/repos/getlantern/flashlight-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getlantern/flashlight-build/merges","archive_url":"https://api.github.com/repos/getlantern/flashlight-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getlantern/flashlight-build/downloads","issues_url":"https://api.github.com/repos/getlantern/flashlight-build/issues{/number}","pulls_url":"https://api.github.com/repos/getlantern/flashlight-build/pulls{/number}","milestones_url":"https://api.github.com/repos/getlantern/flashlight-build/milestones{/number}","notifications_url":"https://api.github.com/repos/getlantern/flashlight-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getlantern/flashlight-build/labels{/name}","releases_url":"https://api.github.com/repos/getlantern/flashlight-build/releases{/id}","created_at":"2014-12-06T23:27:18Z","updated_at":"2015-01-27T21:14:23Z","pushed_at":"2015-01-29T21:55:01Z","git_url":"git://github.com/getlantern/flashlight-build.git","ssh_url":"git@github.com:getlantern/flashlight-build.git","clone_url":"https://github.com/getlantern/flashlight-build.git","svn_url":"https://github.com/getlantern/flashlight-build","homepage":null,"size":63069,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"devel"}},"base":{"label":"getlantern:devel","ref":"devel","sha":"16c425829804fa8a22d70bb281e2dc3715ab5c08","user":{"login":"getlantern","id":624178,"avatar_url":"https://avatars.githubusercontent.com/u/624178?v=3","gravatar_id":"","url":"https://api.github.com/users/getlantern","html_url":"https://github.com/getlantern","followers_url":"https://api.github.com/users/getlantern/followers","following_url":"https://api.github.com/users/getlantern/following{/other_user}","gists_url":"https://api.github.com/users/getlantern/gists{/gist_id}","starred_url":"https://api.github.com/users/getlantern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlantern/subscriptions","organizations_url":"https://api.github.com/users/getlantern/orgs","repos_url":"https://api.github.com/users/getlantern/repos","events_url":"https://api.github.com/users/getlantern/events{/privacy}","received_events_url":"https://api.github.com/users/getlantern/received_events","type":"Organization","site_admin":false},"repo":{"id":27652771,"name":"flashlight-build","full_name":"getlantern/flashlight-build","owner":{"login":"getlantern","id":624178,"avatar_url":"https://avatars.githubusercontent.com/u/624178?v=3","gravatar_id":"","url":"https://api.github.com/users/getlantern","html_url":"https://github.com/getlantern","followers_url":"https://api.github.com/users/getlantern/followers","following_url":"https://api.github.com/users/getlantern/following{/other_user}","gists_url":"https://api.github.com/users/getlantern/gists{/gist_id}","starred_url":"https://api.github.com/users/getlantern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getlantern/subscriptions","organizations_url":"https://api.github.com/users/getlantern/orgs","repos_url":"https://api.github.com/users/getlantern/repos","events_url":"https://api.github.com/users/getlantern/events{/privacy}","received_events_url":"https://api.github.com/users/getlantern/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getlantern/flashlight-build","description":"Repeatable builds for flashlight, using gost","fork":false,"url":"https://api.github.com/repos/getlantern/flashlight-build","forks_url":"https://api.github.com/repos/getlantern/flashlight-build/forks","keys_url":"https://api.github.com/repos/getlantern/flashlight-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getlantern/flashlight-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getlantern/flashlight-build/teams","hooks_url":"https://api.github.com/repos/getlantern/flashlight-build/hooks","issue_events_url":"https://api.github.com/repos/getlantern/flashlight-build/issues/events{/number}","events_url":"https://api.github.com/repos/getlantern/flashlight-build/events","assignees_url":"https://api.github.com/repos/getlantern/flashlight-build/assignees{/user}","branches_url":"https://api.github.com/repos/getlantern/flashlight-build/branches{/branch}","tags_url":"https://api.github.com/repos/getlantern/flashlight-build/tags","blobs_url":"https://api.github.com/repos/getlantern/flashlight-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getlantern/flashlight-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getlantern/flashlight-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/getlantern/flashlight-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getlantern/flashlight-build/statuses/{sha}","languages_url":"https://api.github.com/repos/getlantern/flashlight-build/languages","stargazers_url":"https://api.github.com/repos/getlantern/flashlight-build/stargazers","contributors_url":"https://api.github.com/repos/getlantern/flashlight-build/contributors","subscribers_url":"https://api.github.com/repos/getlantern/flashlight-build/subscribers","subscription_url":"https://api.github.com/repos/getlantern/flashlight-build/subscription","commits_url":"https://api.github.com/repos/getlantern/flashlight-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/getlantern/flashlight-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/getlantern/flashlight-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/getlantern/flashlight-build/issues/comments/{number}","contents_url":"https://api.github.com/repos/getlantern/flashlight-build/contents/{+path}","compare_url":"https://api.github.com/repos/getlantern/flashlight-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getlantern/flashlight-build/merges","archive_url":"https://api.github.com/repos/getlantern/flashlight-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getlantern/flashlight-build/downloads","issues_url":"https://api.github.com/repos/getlantern/flashlight-build/issues{/number}","pulls_url":"https://api.github.com/repos/getlantern/flashlight-build/pulls{/number}","milestones_url":"https://api.github.com/repos/getlantern/flashlight-build/milestones{/number}","notifications_url":"https://api.github.com/repos/getlantern/flashlight-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getlantern/flashlight-build/labels{/name}","releases_url":"https://api.github.com/repos/getlantern/flashlight-build/releases{/id}","created_at":"2014-12-06T23:27:18Z","updated_at":"2015-01-27T21:14:23Z","pushed_at":"2015-01-29T21:55:01Z","git_url":"git://github.com/getlantern/flashlight-build.git","ssh_url":"git@github.com:getlantern/flashlight-build.git","clone_url":"https://github.com/getlantern/flashlight-build.git","svn_url":"https://github.com/getlantern/flashlight-build","homepage":null,"size":63069,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36"},"html":{"href":"https://github.com/getlantern/flashlight-build/pull/36"},"issue":{"href":"https://api.github.com/repos/getlantern/flashlight-build/issues/36"},"comments":{"href":"https://api.github.com/repos/getlantern/flashlight-build/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/getlantern/flashlight-build/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/getlantern/flashlight-build/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/getlantern/flashlight-build/statuses/f818c97fb47261b870e09598ff15d1521981e088"}}}}