# Draw() function never activated after the app is executed

**URL:** https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461
**Category:** Processing for Android
**Created:** [May 28, 2018, 10:10am UTC](https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461 "2018-05-28T10:10:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yassin](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yassin](https://discourse.processing.org/u/yassin)
#### Post date: [May 28, 2018, 10:10am UTC](https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461/1 "2018-05-28T10:10:46Z")

</div>

I don’t know why my draw function is not working here. I’m wokring with Android (under Android Studio) and it never happened before (at least while I was testing the example available on the website).

So my sketch didn’t work the way I want, then I put a println() in the draw function but nothing is printed. Every println() are executed if they’re in the setup function but nothing happens in the draw function.

Did anyone faced that situation before?

---

<div class="post-metadata">

### Author: ![yassin](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yassin](https://discourse.processing.org/u/yassin)
#### Post date: [May 28, 2018, 10:31am UTC](https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461/2 "2018-05-28T10:31:06Z")

</div>

Update

I get this error in the console : W/System.err: OpenGL error 1280 at bot beginDraw(): invalid enum

I’ll look for solutions

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [May 28, 2018, 11:31am UTC](https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461/3 "2018-05-28T11:31:41Z")

</div>

Hello please post your entire code

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [May 29, 2018, 9:48am UTC](https://discourse.processing.org/t/draw-function-never-activated-after-the-app-is-executed/461/4 "2018-05-29T09:48:29Z")

</div>

this seems to be a bug:  
see here [https://github.com/processing/processing-android/issues/281](https://github.com/processing/processing-android/issues/281)

(but it does not seem to block and without seeing your code it s impossible to say wether there is not another problem)
