# Android error message

**URL:** https://discourse.processing.org/t/android-error-message/7939
**Category:** Processing for Android
**Created:** [January 29, 2019, 6:51pm UTC](https://discourse.processing.org/t/android-error-message/7939 "2019-01-29T18:51:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Banansplitt](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Banansplitt](https://discourse.processing.org/u/Banansplitt)
#### Post date: [January 29, 2019, 6:51pm UTC](https://discourse.processing.org/t/android-error-message/7939/1 "2019-01-29T18:51:34Z")

</div>

I am new to processing for android. There is obviously a lot of stuff wrong with my sketch but I can’t figure out what the error messages mean. It would mean the world to me if anyone could help. Heres the errors `AndroidDevice: cannot find process id, console output will be disabled. AndroidDevice: cannot find process id, console output will be disabled. AndroidDevice: cannot find process id, console output will be disabled. FATAL EXCEPTION: Animation Thread Process: processing.test.avoidaliens_v3_00_touch_beta_1, PID: 16944 java.lang.IllegalArgumentException: File /pictures/plane.png contains a path separator at android.app.ContextImpl.makeFilename(ContextImpl.java:2882) at android.app.ContextImpl.openFileInput(ContextImpl.java:623) at android.content.ContextWrapper.openFileInput(ContextWrapper.java:202) at processing.core.PSurfaceNone.openFileInput(PSurfaceNone.java:331) at processing.core.PApplet.createInputRaw(PApplet.java:5116) at processing.core.PApplet.createInput(PApplet.java:4924) at processing.core.PApplet.loadImage(PApplet.java:4019) at processing.test.avoidaliens_v3_00_touch_beta_1.AvoidAliens_V3_00_TOUCH_BETA_1.setup(AvoidAliens_V3_00_TOUCH_BETA_1.java:149) at processing.core.PApplet.handleDraw(PApplet.java:1838) at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476) at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)`

---

<div class="post-metadata">

### Author: ![Banansplitt](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Banansplitt](https://discourse.processing.org/u/Banansplitt)
#### Post date: [January 29, 2019, 7:02pm UTC](https://discourse.processing.org/t/android-error-message/7939/2 "2019-01-29T19:02:49Z")

</div>

I fixed the first lines by removing the folder paths. The message now says

```auto
Could not load the image because the bitmap was empty.
FATAL EXCEPTION: Animation Thread
Process: processing.test.avoidaliens_v3_00_touch_beta_1, PID: 17740
java.lang.NullPointerException: Attempt to read from field 'int processing.core.PImage.width' on a null object reference
	at processing.core.PGraphics.image(PGraphics.java:2931)
	at processing.core.PApplet.image(PApplet.java:8747)
	at processing.test.avoidaliens_v3_00_touch_beta_1.AvoidAliens_V3_00_TOUCH_BETA_1.draw(AvoidAliens_V3_00_TOUCH_BETA_1.java:213)
	at processing.core.PApplet.handleDraw(PApplet.java:1855)
	at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476)
	at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)

```

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [January 30, 2019, 5:36am UTC](https://discourse.processing.org/t/android-error-message/7939/3 "2019-01-30T05:36:54Z")

</div>

> [@Banansplitt](#):
>
> Could not load the image because the bitmap was empty

It is just not possible to help if you don’t show some code to reproduce the problem. This ill also show the approach you are taking.

- Is the file a valid file?
- Is it in the right location?
- Can you run a simple android sample code as described in the Processing Android site? In other words, if your Processing Android properly configured?

Kf

---

<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: [January 30, 2019, 9:07am UTC](https://discourse.processing.org/t/android-error-message/7939/4 "2019-01-30T09:07:57Z")

</div>

@Banansplitt===  
first error is simple to explain: a path (something like folder1/folder2/myImage.jpg) is NOT a correct file name…Second one can be fired by 2 or 3 reasons (you forgot to create an instance for your img var, your image is not in the data folder, its name is not the good one…) but without seeing your code and knowing where is the image it is impossible to conclude…
