# Android : textures not being displayed

**URL:** https://discourse.libcinder.org/t/android-textures-not-being-displayed/1147
**Category:** Uncategorized
**Created:** [May 1, 2018, 10:36pm UTC](https://discourse.libcinder.org/t/android-textures-not-being-displayed/1147 "2018-05-01T22:36:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vincent\_rioux](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vincent\_rioux](https://discourse.libcinder.org/u/vincent_rioux)
#### Post date: [May 1, 2018, 10:36pm UTC](https://discourse.libcinder.org/t/android-textures-not-being-displayed/1147/1 "2018-05-01T22:36:51Z")

</div>

Can’t get textures to show up under Android, did something change in Cinder code ? (it was working last august).  
drawString is not working either.

---

<div class="post-metadata">

### Author: ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)
#### Post date: [June 17, 2019, 6:01pm UTC](https://discourse.libcinder.org/t/android-textures-not-being-displayed/1147/2 "2019-06-17T18:01:23Z")

</div>

I’m experiencing something similar. Some of the textures are displayed, but some are not. I didn’t try `drawString`, but texts rendered with `TextBox` show up. Have you figured this out?

-Gabor

---

<div class="post-metadata">

### Author: ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)
#### Post date: [June 18, 2019, 6:02am UTC](https://discourse.libcinder.org/t/android-textures-not-being-displayed/1147/3 "2019-06-18T06:02:01Z")

</div>

My issue was connected to reading the images from the sdcard. I got fopen error. Since texts were read ok, I changed the image loading similar to how it is done.

instead of

`image = loadImage( loadFile( url ) );`

I had to use

```auto
auto dataSource = loadFile( url );
auto buffer = dataSource->getBuffer();
DataSourceBufferRef dataSourceBuffer = DataSourceBuffer::create( buffer );
image = loadImage( dataSourceBuffer );

```

---

<div class="post-metadata">

### Author: ![vincent\_rioux](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vincent\_rioux](https://discourse.libcinder.org/u/vincent_rioux)
#### Post date: [July 8, 2019, 5:35pm UTC](https://discourse.libcinder.org/t/android-textures-not-being-displayed/1147/4 "2019-07-08T17:35:24Z")

</div>

cool, i must say i recently tried to recompile a (rather simple) project i managed to port to android last year, but i could not make it (i updated my linuxbox in the meantime, changed ndk version, and well too much things i don’t want to learn came up, finally i gave up). But, yes at some point, i managed to get textures and font texts working on an android tablet.

V

ps: for the simple app i still want to port to android, i found that gomobile was enough.
