# LoadImage Android Studio

**URL:** https://discourse.processing.org/t/loadimage-android-studio/26802
**Category:** Processing for Android
**Created:** [January 5, 2021, 7:35pm UTC](https://discourse.processing.org/t/loadimage-android-studio/26802 "2021-01-05T19:35:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![andritow](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@andritow](https://discourse.processing.org/u/andritow)
#### Post date: [January 5, 2021, 7:35pm UTC](https://discourse.processing.org/t/loadimage-android-studio/26802/1 "2021-01-05T19:35:59Z")

</div>

I already checked this forum with loadimage and I haven’t been able to add images to my project yet.  
I have the assets folder add to the project where I have put my images but when I call them it keeps showing an error.

Attempt to invoke interface method ‘android.content.res.AssetManager processing.core.PSurface.getAssets ()’ on a null object reference

I have tried AssetManager but I have not succeeded, I have not been able to return a String which is the parameter that receives loadImage ()

Help me please

public void settings () {  
size (500, 700);  
asteroid = loadImage (“asteroid.png”);  
background = loadImage (“background.png”);  
nave2 = loadImage (“nave2.png”);  
noStroke ();  
}

 ![Captura](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/095939baa225d5e9ac5bd8e6018ee2bab70f2317.png)
