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

Reply via email to