Bug 1565 : image() not working on android OS
Last modified: 2010-05-20 13:44




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Interfacer
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-05-19 18:53
NullPointerException.
Android.Processing, version 0184
Ran fine on Windows7, had problem on android (HTC Eris).

image(bg, 0, 0); // it was a .png, png24
Here's the project: http://www.mediafire.com/?nztd2fmdjvz

Spewage: It all started with "Could not find the image bg.png."
Additional Comment #1 From fry 2010-05-20 03:25
does it work in the emulator?
Additional Comment #2 From Interfacer 2010-05-20 07:36
(In reply to comment #1)
>
>
>
> Additional Comment #1 From
>
> fry
> 2010-05-20 03:25
>
> <!--
> addReplyLink(1); //-->[reply]
>
>
>
>
>
>
> does it work in the emulator?
>
>


Nope, same error in the emulator as on my device.

Sup Fry! Gigantic fan of processing. Keep up the amazing work.
Additional Comment #3 From fry 2010-05-20 09:15
cool, thanks. will look into it.
Additional Comment #4 From Interfacer 2010-05-20 09:20
No prob. Processing is the most ideal language for making games and such on android.
Android is becoming insanely popular, too. But the phones aren't powerful enough to
draw anything besides images (smoothly).

If you ever need anything in the way of graphic design (especially GUI stuff), let me
know. I'd be glad to help Processing for free.
Portfolio if you're interested: http://cheeseenthusiast.deviantart.com
Additional Comment #5 From Interfacer 2010-05-20 09:52
Interestingly enough, it's working now.
I already had the image in the sketch folder (placed manually), but doing Sketch>Add
File seemed to fix it.
Additional Comment #6 From fry 2010-05-20 13:03
oh, did you not have it in the data folder, only the sketch folder itself?
Additional Comment #7 From Interfacer 2010-05-20 13:40
Hehe, yeah. It worked fine like that on PC
though.

Sorry >.<
Additional Comment #8 From fry 2010-05-20 13:44
ah, ok. in some situations it's ok on the pc.