{"action":"created","issue":{"url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/issues/228","repository_url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella","labels_url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/issues/228/comments","events_url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/issues/228/events","html_url":"https://github.com/ja2-stracciatella/ja2-stracciatella/issues/228","id":135236807,"number":228,"title":"Android build","user":{"login":"selaux","id":848854,"avatar_url":"https://avatars.githubusercontent.com/u/848854?v=3","gravatar_id":"","url":"https://api.github.com/users/selaux","html_url":"https://github.com/selaux","followers_url":"https://api.github.com/users/selaux/followers","following_url":"https://api.github.com/users/selaux/following{/other_user}","gists_url":"https://api.github.com/users/selaux/gists{/gist_id}","starred_url":"https://api.github.com/users/selaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selaux/subscriptions","organizations_url":"https://api.github.com/users/selaux/orgs","repos_url":"https://api.github.com/users/selaux/repos","events_url":"https://api.github.com/users/selaux/events{/privacy}","received_events_url":"https://api.github.com/users/selaux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/labels/major","name":"major","color":"ededed"},{"url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/labels/task","name":"task","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-21T18:07:42Z","updated_at":"2016-02-21T18:25:33Z","closed_at":null,"body":"Good news everyone :tada:! I compiled the `sdl2` branch for Android using the example project provided by SDL2. This was surprisingly easy, barely any code changes needed to be done and the result is a working apk, which could in theory be played. There are still issues with font rendering though, that were fixed in the SDL1.2 port.\r\n\r\nYou can try [SDLActivity-debug.apk.zip](https://github.com/ja2-stracciatella/ja2-stracciatella/files/139758/SDLActivity-debug.apk.zip) on your phone. For simplicity I hardcoded all paths to `\"/storage/sdcard1/ja2-data\"` which will hopefully be present on most phones (with sd cards). Your `data` and `externalized` directories need to be copied there. The `.ja2` directory will be created there as well and you need to adapt the ini to point to the data path after the first run.\r\n\r\nThings learned from this port:\r\n- We should update to boost 1.60.0, because it fixes compilation of boost for Android.\r\n- Dirty rectangle screen updating seems to be broken on Android (at least on my i9300)\r\n- The touch input needs updating :wink: \r\n\r\nI can upload some code for the Android wrapper prototype if you want. This might have to be done in a different repository though, or should we keep everything in here.\r\n"},"comment":{"url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/issues/comments/186880782","html_url":"https://github.com/ja2-stracciatella/ja2-stracciatella/issues/228#issuecomment-186880782","issue_url":"https://api.github.com/repos/ja2-stracciatella/ja2-stracciatella/issues/228","id":186880782,"user":{"login":"selaux","id":848854,"avatar_url":"https://avatars.githubusercontent.com/u/848854?v=3","gravatar_id":"","url":"https://api.github.com/users/selaux","html_url":"https://github.com/selaux","followers_url":"https://api.github.com/users/selaux/followers","following_url":"https://api.github.com/users/selaux/following{/other_user}","gists_url":"https://api.github.com/users/selaux/gists{/gist_id}","starred_url":"https://api.github.com/users/selaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selaux/subscriptions","organizations_url":"https://api.github.com/users/selaux/orgs","repos_url":"https://api.github.com/users/selaux/repos","events_url":"https://api.github.com/users/selaux/events{/privacy}","received_events_url":"https://api.github.com/users/selaux/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T18:25:33Z","updated_at":"2016-02-21T18:25:33Z","body":"I was annoyed by the one-off error in the sdl2 branch, so I took some time off :smile:. I wont merge anything into the sdl2 branch, this is just to prove that its easier than with sdl1.\r\n\r\nPutting everything into this repo will include some android specific build stuff and `*.java` files though, but maybe we can confine this into a subdirectory."}}