[android-developers] Re: Bitmap on sdcard & decodestream

2008-10-01 Thread Guillaume Perrot
No comment :p On Sep 30, 6:48 pm, Matteo Crippa <[EMAIL PROTECTED]> wrote: > Thanks Romain, you are right! > I totally forgot to init it... and it was driving me crazy :( > > On 30 Set, 18:24, "Romain Guy" <[EMAIL PROTECTED]> wrote: > > > The fix is simple, initialize you array photos. In the bug

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Romain Guy
The fix is simple, initialize you array photos. In the bug report you filed, the array itself is null. The Bitmap returned by BitmapFactory is not. On Tue, Sep 30, 2008 at 2:17 AM, Matteo Crippa <[EMAIL PROTECTED]> wrote: > > Easy i was playing with a little app i'm developing but i've just > fou

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Matteo Crippa
Thanks Romain, you are right! I totally forgot to init it... and it was driving me crazy :( On 30 Set, 18:24, "Romain Guy" <[EMAIL PROTECTED]> wrote: > The fix is simple, initialize you array photos. In the bug report you > filed, the array itself is null. The Bitmap returned by BitmapFactory >

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Matteo Crippa
yes, i've just test them using the default app and also with the dev tools "raw image viewer" and both are able to show my pics :( Guillaume, may I ask you if can kindly paste a snippet of the code you are using to load an img from the sdcard? On 30 Set, 16:49, Guillaume Perrot <[EMAIL PROTECTED

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Guillaume Perrot
I also use BitmapFactory.decodeStream on images on the sdcard, but I have no problem. Does your images work with the standard Pictures application ? On Sep 30, 4:29 pm, Matteo Crippa <[EMAIL PROTECTED]> wrote: > Ok, bug filed, but I don't think it could be related to images, i've > just tested jp

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Matteo Crippa
Ok, bug filed, but I don't think it could be related to images, i've just tested jpgs and pngs, and it fails with both of them... http://code.google.com/p/android/issues/detail?id=921 On 30 Set, 15:44, Mike Reed <[EMAIL PROTECTED]> wrote: > Please file a bug for this, and attach one or more of t

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Matteo Crippa
Hi Mike, i've just tried adding these few lines inside my code to hard-debug it: Log.d("stream",""+is.available()); Log.d("stream",is.toString()); Log.d("bstream",""+bis.available()); Log.d("bstream",bis.toString()); if(is==null) Log.d("stream","is null"); and debugger says me: 09-30 15:41:5

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Mike Reed
Please file a bug for this, and attach one or more of the images and your code snippet. That will make it much easier to diagnose. thanks, mike On Sep 30, 2008, at 9:25 AM, Matteo Crippa wrote: Hi sahn0 & thanks for the tip, but it still fails with a NullPointerException... I tried looking

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Matteo Crippa
Hi sahn0 & thanks for the tip, but it still fails with a NullPointerException... I tried looking at f.isFile() and it returns true... so file exists... On 30 Set, 12:27, sahn0 <[EMAIL PROTECTED]> wrote: > Maybe it is jpg format that causing problems? Try converting images to > png. > > On 30 се

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread Mike Reed
That is a correct way to call decodeStream. Are you sure the path is correct (i.e. are you getting a non-null fileinputstream)? On Sep 30, 2008, at 5:17 AM, Matteo Crippa wrote: Easy i was playing with a little app i'm developing but i've just found a little problem... let's explain me it...

[android-developers] Re: Bitmap on sdcard & decodestream

2008-09-30 Thread sahn0
Maybe it is jpg format that causing problems? Try converting images to png. On 30 сент, 16:17, Matteo Crippa <[EMAIL PROTECTED]> wrote: > Easy i was playing with a little app i'm developing but i've just > found a little problem... let's explain me it... > > I created a sdcard and inside it I pla