# Cant video or image

**URL:** <https://discourse.processing.org/t/cant-video-or-image/26884>\
**Category:** Processing for Android\
**Created:** [January 8, 2021, 12:56pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884 "2021-01-08T12:56:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![clay21](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@clay21](https://discourse.processing.org/u/clay21)\
**Post date:** [January 8, 2021, 12:56pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884/1 "2021-01-08T12:56:19Z")

</div>

Hello ım tryn to learn anroid mode but i cant add video or image to my sketch something wrong but i have no idea whats happening HERE IS MY CODE

PImage img;  
void setup() {  
fullScreen();  
noStroke();  
fill(0);  
img=loadImage(“data/bg20.jpg”);  
}

void draw() {

```
   image(img,width/2,height);

```

}

---

<div class="post-metadata">

**Author:** ![Elmpt](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Elmpt](https://discourse.processing.org/u/Elmpt)\
**Post date:** [January 8, 2021, 1:26pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884/2 "2021-01-08T13:26:48Z")

</div>

I am not sure, I am also a beginner, but I would use setUp() function and write `img=loadImage(“data/bg20.jpg”);` in it

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [January 8, 2021, 1:33pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884/3 "2021-01-08T13:33:20Z")

</div>

> [@clay21](#):
>
> img=loadImage(“data/bg20.jpg”);

Try: img=loadImage(“bg20.jpg”);

---

<div class="post-metadata">

**Author:** ![clay21](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@clay21](https://discourse.processing.org/u/clay21)\
**Post date:** [January 8, 2021, 5:23pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884/4 "2021-01-08T17:23:58Z")

</div>

i did try both but keep sending this : sketch has stopped working maybe i can import something about anroid video or image?

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [January 8, 2021, 5:38pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884/5 "2021-01-08T17:38:32Z")

</div>

No imports are nescessary. Just having the file in the data folder is enough. Should work. Try another image. Is the file name exactly the same? What Android version has your phone?

---

<div class="post-metadata">

**Author:** ![clay21](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@clay21](https://discourse.processing.org/u/clay21)\
**Post date:** [January 8, 2021, 8:25pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884/6 "2021-01-08T20:25:19Z")

</div>

6.0 anroid version i have in my phone

---

<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 9, 2021, 3:40pm UTC](https://discourse.processing.org/t/cant-video-or-image/26884/7 "2021-01-09T15:40:31Z")

</div>

@clay21 === loadImage() works (used like @noel said); either a problem with your image (i dont think so but…) or with permissions (with MM if needed they are asked on runtime) or with the folder where you put your image. As for video it is another story and open a new post for this topic (and begin to search the forum or the @noel repo.)
