HI Filip,

I'll try to see the system response..
Today nothing is working...
I've passed so many bitmaps through the parceable extra in the bundle.. this one is not working.. it was the thing that was messing up with the bundles... So I removed it and I decided to pass just the picture path.. and now there's an error.. God!
Such a simple thing and I'm a whole day on this...

On Aug 23, 2010, at 8:17 PM, Filip Havlicek wrote:

Hi Pedro,

we meet again! I'm pretty sure we need the stack trace of your error from DDMS to help you with this.

Best regards,
Filip Havlicek

2010/8/23 Pedro Teixeira <[email protected]>
Hi...
I have an activity that passes a bundle to another one with a path for
a bitmap...
In the activity that receives the bundle I do it like this:

                       Bundle w = getIntent().getExtras();
                     if (w!=null){
String activityName = w.getString ("activity");
                         TNNPicturePath = w.getString("path");
TNNPicture = BitmapFactory.decodeFile (TNNPicturePath);
                         //set bitmap on imageview
transparencyPreview = (ImageView) findViewById(R.id.picture); transparencyPreview.setImageBitmap (TNNPicture);
                             transparencyPreview.setAlpha(100);
                     }

TNNPicturePath actually receives the path String which is (saw it on
debugger):
/sdcard/DCIM/Camera/2010-02-12 03.01.13.jpg
so I guess everything is alright right?
The thing is.. I'm getting an error decoding the file...
this line to be more precise:
TNNPicture = BitmapFactory.decodeFile (TNNPicturePath);

any suggestions what can be wrong? I have the path..I have the bitmap
to store.. I dont understand whats wrong.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Pedro Teixeira

www.pedroteixeira.org

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to