# Android Version

**URL:** <https://discourse.cataclysmdda.org/t/android-version/13348>\
**Category:** The Lab\
**Created:** [February 2, 2017, 12:42am UTC](https://discourse.cataclysmdda.org/t/android-version/13348 "2017-02-02T00:42:42Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![hatcher](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@hatcher](https://discourse.cataclysmdda.org/u/hatcher)\
**Post date:** [February 3, 2017, 9:04am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/21 "2017-02-03T09:04:30Z")

</div>

Alcatel pop c7, 512 RAM.  
Crashing after unpacking, debug log is empty. Out of memory? Where can i check?  
Saaaaaaad.

Btw, great work, dude.

---

<div class="post-metadata">

**Author:** ![frankokoro](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/frankokoro/32/574_2.png) [@frankokoro](https://discourse.cataclysmdda.org/u/frankokoro)\
**Post date:** [February 3, 2017, 6:15pm UTC](https://discourse.cataclysmdda.org/t/android-version/13348/22 "2017-02-03T18:15:00Z")

</div>

[quote=“a1studmuffin, post:12, topic:13348”]There’s one bug I’m looking into at the moment which has happened on a handful of devices only. There seems to be something wacky going on with the text printing:

World create screen:

 ![](http://i.imgur.com/pSryGTl.png)

It seems like the game is running fine, but when it draws a window + prints text, certain characters are repeating several times across multiple cells (and obscuring other characters/cells in the process).

I haven’t changed any of this code from the desktop build, so my gut feeling is it’s perhaps an uninitialized value somewhere in the window/text printing functions that’s fine on desktop and most devices by chance, but not on a handful of these Android devices.

If any of the CDDA devs have any thoughts on this I’m all ears - I’ll keep looking at it on my side though I can’t repro it on my device or on my Genymotion emulators so it’s a bit tricky to track down, might have to enlist the help of someone testing it and dump out some logging info.[/quote]

Having the same problem, phone is a Huawei Honor 5X model KIW-L24.

---

<div class="post-metadata">

**Author:** ![Adragis029](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/adragis029/32/496_2.png) [@Adragis029](https://discourse.cataclysmdda.org/u/Adragis029)\
**Post date:** [February 4, 2017, 12:04am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/23 "2017-02-04T00:04:22Z")

</div>

Won’t run at all. Opens on black screen, says it’s not responding after ~10 seconds.

Sony Xperia S.

---

<div class="post-metadata">

**Author:** ![nasKo](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nasKo](https://discourse.cataclysmdda.org/u/nasKo)\
**Post date:** [February 4, 2017, 12:40am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/24 "2017-02-04T00:40:41Z")

</div>

[quote=“a1studmuffin, post:12, topic:13348”]There’s one bug I’m looking into at the moment which has happened on a handful of devices only. There seems to be something wacky going on with the text printing:

_snip_[/quote]  
Getting that every time I start, too.

Note 4 N910F on 6.0.1

---

<div class="post-metadata">

**Author:** ![Wojtek94](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/wojtek94/32/6857_2.png) [@Wojtek94](https://discourse.cataclysmdda.org/u/Wojtek94)\
**Post date:** [February 4, 2017, 10:34am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/25 "2017-02-04T10:34:08Z")

</div>

I don’t know why but if I unpack ,RFFSound" into ,sound" folder Cata doesn’t work. Any solutions?

---

<div class="post-metadata">

**Author:** ![a1studmuffin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/a1studmuffin/32/2812_2.png) [@a1studmuffin](https://discourse.cataclysmdda.org/u/a1studmuffin)\
**Post date:** [February 4, 2017, 12:43pm UTC](https://discourse.cataclysmdda.org/t/android-version/13348/26 "2017-02-04T12:43:15Z")

</div>

Kevin: Thanks for the kind words! I must say the codebase compiled for Android remarkably well once I got the makefiles set up correctly. There were a couple of minor issues with missing standard library functions, and I’ve made a few fixes in #ifdef **ANDROID** blocks. When I get it all up on GitHub I’ll see if there are some sensible pull requests to be made back to mainline, but really the majority of the work was just all the hackery I did to add the touch controls, so I don’t think it will be too painful going forward if I just continue to pull latest down every now and then.

hatcher: Yeah the crash will be due to not enough memory, it needs about 400-450MB free, sorry!

Adragis029: Have you tried leaving it on the black screen for a while (like a minute or two)? It currently takes quite a long time to start up without any feedback during this period, I’m working on fixing that for the next version update. (Edit: Just checked your phone specs, with 1GB RAM it’s possibly out of memory depending on how much the OS is using up. You could try manually editing config\options.json and set Use Tiles to false.)

---

<div class="post-metadata">

**Author:** ![a1studmuffin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/a1studmuffin/32/2812_2.png) [@a1studmuffin](https://discourse.cataclysmdda.org/u/a1studmuffin)\
**Post date:** [February 4, 2017, 12:45pm UTC](https://discourse.cataclysmdda.org/t/android-version/13348/27 "2017-02-04T12:45:06Z")

</div>

> [@Wojtek94](#):
>
> I don’t know why but if I unpack ,RFFSound" into ,sound" folder Cata doesn’t work. Any solutions?

I haven’t tried that soundpack specifically, but I managed to get the ChestHole soundpack working fine - does that one work? It could be a memory issue otherwise.

---

<div class="post-metadata">

**Author:** ![hatcher](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@hatcher](https://discourse.cataclysmdda.org/u/hatcher)\
**Post date:** [February 4, 2017, 2:29pm UTC](https://discourse.cataclysmdda.org/t/android-version/13348/28 "2017-02-04T14:29:42Z")

</div>

Hey, its me again.

I launched cata (kinda) successfully.  
For some reason, extractor doesn’t creating configs, so, i copied my config folder.  
After that, finally, i’ve seen main menu window.  
Greetings from Mother Russia.

---

<div class="post-metadata">

**Author:** ![Adragis029](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/adragis029/32/496_2.png) [@Adragis029](https://discourse.cataclysmdda.org/u/Adragis029)\
**Post date:** [February 4, 2017, 4:53pm UTC](https://discourse.cataclysmdda.org/t/android-version/13348/29 "2017-02-04T16:53:15Z")

</div>

> [@a1studmuffin](#):
>
> Adragis029: Have you tried leaving it on the black screen for a while (like a minute or two)? It currently takes quite a long time to start up without any feedback during this period, I’m working on fixing that for the next version update. (Edit: Just checked your phone specs, with 1GB RAM it’s possibly out of memory depending on how much the OS is using up. You could try manually editing config\options.json and set Use Tiles to false.)

Yeah, it just doesn’t work after several minutes.  
I’ll try the configs thing, I never use tiles anyway 😛

EDIT: I can’t find options.json. I think files aren’t copying properly?

edit: just deleted the gfx folder, works now and i set it to ascii

---

<div class="post-metadata">

**Author:** ![a1studmuffin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/a1studmuffin/32/2812_2.png) [@a1studmuffin](https://discourse.cataclysmdda.org/u/a1studmuffin)\
**Post date:** [February 4, 2017, 10:53pm UTC](https://discourse.cataclysmdda.org/t/android-version/13348/30 "2017-02-04T22:53:32Z")

</div>

Thanks for the update, great to hear it’s running now. That’s a good plan B for a lot of people too, I’ll be sure to include that in the FAQ. The reason the config file doesn’t exist is because it’s created by the game on first run, so if it’s not getting that far it won’t appear. But I didn’t think of deleting the gfx folder to force it to use ascii, nice one.

---

<div class="post-metadata">

**Author:** ![BigD145](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bigd145/32/863_2.png) [@BigD145](https://discourse.cataclysmdda.org/u/BigD145)\
**Post date:** [February 5, 2017, 12:19am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/31 "2017-02-05T00:19:42Z")

</div>

Well now. This is quite nice. I’ll poke some buttons for you.

So far so good running on a Xiaomi Redmi. It boots better after removing the gfx folder.

---

<div class="post-metadata">

**Author:** ![a1studmuffin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/a1studmuffin/32/2812_2.png) [@a1studmuffin](https://discourse.cataclysmdda.org/u/a1studmuffin)\
**Post date:** [February 5, 2017, 1:02am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/32 "2017-02-05T01:02:41Z")

</div>

Yeah currently that black screen on startup is where the game is loading in the tile sheets, applying effects + splitting them up into individual tiles in memory. I might be able to optimize that flow a little bit, though I think most of it will have to sit behind a progress bar unfortunately, it just takes quite a while on Android to do that stuff.

---

<div class="post-metadata">

**Author:** ![hatcher](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@hatcher](https://discourse.cataclysmdda.org/u/hatcher)\
**Post date:** [February 5, 2017, 6:51am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/33 "2017-02-05T06:51:54Z")

</div>

Its already working ~5 times faster, than Cata launched from Exagear (wine emulator)  
15 sec. loading, holy huck.  
You’re my hero.

---

<div class="post-metadata">

**Author:** ![mentos046](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mentos046/32/11932_2.png) [@mentos046](https://discourse.cataclysmdda.org/u/mentos046)\
**Post date:** [February 5, 2017, 10:18pm UTC](https://discourse.cataclysmdda.org/t/android-version/13348/34 "2017-02-05T22:18:17Z")

</div>

Thank you for making this, it sounds brilliant. I have a problem, though.  
I downloaded the APK and moved it from my computer to my tablet (a Fire 5th Generation) then installed it. When I attempt to boot the application it stays on a black screen for about 10 seconds then returns to the home screen with the list of applications. What am I doing wrong? Is my tablet just not powerful enough to run it?

---

<div class="post-metadata">

**Author:** ![TheMightyHercules](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/themightyhercules/32/340_2.png) [@TheMightyHercules](https://discourse.cataclysmdda.org/u/TheMightyHercules)\
**Post date:** [February 6, 2017, 12:05am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/35 "2017-02-06T00:05:37Z")

</div>

![](http://25.media.tumblr.com/f57c9e8abcc06c823679c0e0af6030a2/tumblr_mzh0hqMANs1qfaa86o1_400.gif)

All shits aside, I am SO happy that there’s finally an Android version. Now I can finally kill zombies away from my computer!

[move]Not like I haven’t been doing that already IRL… I mean wait what?[/move]

---

<div class="post-metadata">

**Author:** ![a1studmuffin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/a1studmuffin/32/2812_2.png) [@a1studmuffin](https://discourse.cataclysmdda.org/u/a1studmuffin)\
**Post date:** [February 6, 2017, 3:02am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/36 "2017-02-06T03:02:36Z")

</div>

[quote=“mentos046, post:34, topic:13348”]Thank you for making this, it sounds brilliant. I have a problem, though.  
I downloaded the APK and moved it from my computer to my tablet (a Fire 5th Generation) then installed it. When I attempt to boot the application it stays on a black screen for about 10 seconds then returns to the home screen with the list of applications. What am I doing wrong? Is my tablet just not powerful enough to run it?[/quote]  
It could be out of memory - it needs about ~400MB free to run. One trick you can try is deleting the gfx folder here: [pre]/sdcard/Android/com.MichaelDavies.CataclysmDDA/files/gfx[/pre]  
This will force it to use ascii and not attempt to load any tilesets into memory.

---

<div class="post-metadata">

**Author:** ![RipRoarinBoogerPenis](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/riproarinboogerpenis/32/20_2.png) [@RipRoarinBoogerPenis](https://discourse.cataclysmdda.org/u/RipRoarinBoogerPenis)\
**Post date:** [February 6, 2017, 3:06am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/37 "2017-02-06T03:06:49Z")

</div>

Top fucking shelf my man! Runs fine on ASUS zen phone 2

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [February 6, 2017, 5:56am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/38 "2017-02-06T05:56:11Z")

</div>

Whoops, forgot to mention my phone in case it’s pertinent, Galaxy Note5, runs better than on my laptop 😛

---

<div class="post-metadata">

**Author:** ![RipRoarinBoogerPenis](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/riproarinboogerpenis/32/20_2.png) [@RipRoarinBoogerPenis](https://discourse.cataclysmdda.org/u/RipRoarinBoogerPenis)\
**Post date:** [February 6, 2017, 7:23am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/39 "2017-02-06T07:23:52Z")

</div>

Is it possible to play in landscape mode?

---

<div class="post-metadata">

**Author:** ![Adragis029](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/adragis029/32/496_2.png) [@Adragis029](https://discourse.cataclysmdda.org/u/Adragis029)\
**Post date:** [February 6, 2017, 7:51am UTC](https://discourse.cataclysmdda.org/t/android-version/13348/40 "2017-02-06T07:51:27Z")

</div>

> [@RipRoarinBoogerPenis](#):
>
> Is it possible to play in landscape mode?

Yep, just turn your phone the right way around. It does warp the screen a bit if you pull up the onscreen keyboard, though.

[Previous page](https://discourse.cataclysmdda.org/t/android-version/13348.md?page=1)

[Next page](https://discourse.cataclysmdda.org/t/android-version/13348.md?page=3)
