Hi Pedro, what pemissions do you have in your manifest? Do you have CAMERA permission?
http://developer.android.com/reference/android/Manifest.permission.html#CAMERA Best regards, Filip Havlicek 2010/8/23 Pedro Teixeira <[email protected]> > Ok.. > > I think I traced this Path problem... > If I do: > BitmapFactory.decodeFile(TNNPicturePath); where TNNPicturePath is a path > from a picture stored in the device it works... if TNNPicture is a path from > a picture taken and stored from the camera.. it doesn't work.. so I'm > guessing.. decodeFile just works for a certain location on the device? Does > this make any sense? > I wanted to retrieve both from camera taken and downloaded pics > > > > 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]<android-developers%[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]<android-developers%[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

